Wait taglib ver. 1.4

    Custom JSP taglib lets you implement some intermediate pages for your long time calculated JSP code (some like "Wait please ..."). So if the response from your JSP page takes long time to return, you can return an intermediate page with say an animated gif, some text information etc. When the results become available this intermediate page will be automatically replaced with the original output. For example, suppose you have some very long time calculated JSP code heavy_code.jsp. You can do so:
 


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

<w:wait>

<w:infoPage>
  Page is being loaded, wait please ...
</w:infoPage>

<w:realPage>
  <jsp:include page="heavy_code.jsp"/>
</w:realPage>

</w:wait>

Here body tag infoPage provides a JSP code for your intermediate page. Body tag realPage provides a JSP code for your long time calculated fragment.

Tags are:

wait

Body tag produces a bundle from an intermediate ("wait please ...") page and your real JSP page. Parameters are:

1) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true (produce a page)

infoPage

Body tag produces an intermediate ("wait please ...") page. Parameters are: none

realPage

Body tag produces a real JSP code. Parameters are: none

for downloading:

Library: waittag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: