net.smartlab.web.page
Class PrevTag

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

public class PrevTag
extends PageTag

Outputs its body only if the current page is not the first 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
PrevTag()
           
 
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

PrevTag

public PrevTag()
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.