PostBack taglib ver. 1.2

    Custom JSP taglib. Lets you support pages post back to themselves. Tag isPostBack calculates a boolean value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. You may stop for example any unnecessary commands from executing multiple times. For example you may want a function run when the page loads but only if it is loading after a post back event etc. Tags are providing the same functionality as a page property isPostBack in .NET

Body tag isPostBack executes own body only if the page is being loaded in response to a client postback, otherwise body of isNotPostBack will be executed.

For example:
 


<%@ taglib uri="taglib.tld" prefix="page" %>

<page:isPostBack> ... some code ...</page:isPostBack>

Tags are:

isPostBack

Body tag executes own body only if the page is being loaded in response to a client postback. Parameters are: none

isNotPostBack

Body tag executes own body in case of isPostBack is false. Parameters are: none

for downloading:

Library: postback.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.