net.smartlab.web.page
Class NextTag

java.lang.Object
  extended by net.smartlab.web.page.AbstractTag
      extended by net.smartlab.web.page.PageTag
          extended by net.smartlab.web.page.NextTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, LinkableTag

public class NextTag
extends PageTag

Outputs its body only if the current page is not the last one.

Author:
rlogiacco

Field Summary
 
Fields inherited from class net.smartlab.web.page.AbstractTag
context
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
NextTag()
           
 
Method Summary
 int doStartTag()
           
 int getPage()
          Returns the page to wich the enclosed LinkTag is directed.
 
Methods inherited from class net.smartlab.web.page.AbstractTag
doEndTag, getPaginator, getParent, release, setPageContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NextTag

public NextTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class PageTag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

getPage

public int getPage()
Description copied from interface: LinkableTag
Returns the page to wich the enclosed LinkTag is directed.

Specified by:
getPage in interface LinkableTag
Overrides:
getPage in class PageTag
Returns:
See Also:
LinkableTag.getPage()


Copyright © 2004-2009 The SmartWeb Team. All Rights Reserved.