Postprocessor taglib ver. 1.3

    Custom JSP taglib. You have to use this taglib with Generic postprocessor from JSOS. Generic postprocessor may forward request after the processing to some JSP file (postprocessor). And in this JSP postprocessor you may use tags from our library.

So the main idea is very simple. In your postprocessor you may read all the data from the original request and add some special actions. And your preprocessor may produce own output data for user or return back to the original data after processing.

For example, tag getOriginalURI lets you obtain an original URI in your postprocessor, tag getContentType lets you obtain a content type etc.

You can read original data with getContent (as a byte array) or getContentString (as a string).
 


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

Original URI is: <t:getOriginalURI/>
Output from the original request is: <t:getContentString/>

As soon as your JSP preprocessor will be executed than request will be returned back to the original chain.

You may use stopChain tag if you need terminate request in your postprocessor. In other words if you are using this tag your post process JSP will generate the final output. Otherwise the original output will be restored.

Tags are:

getOriginalURI

Tag lets you get original URI. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable (type is java.lang.String). With this parameter result will be saved in this variable, without it tag just prints data.

getContentType

Tag lets you get content type from the original request. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable (type is java.lang.String). With this parameter result will be saved in this variable, without it tag just prints data.

getContentLength

Tag lets you get content length from the original request. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable (type is java.lang.Integer). With this parameter result will be saved in this variable, without it tag just prints data.

getContentString

Tag lets you get content as a string. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable (type is java.lang.String). With this parameter result will be saved in this variable, without it tag just prints data.
2) encoding Optional parameter. Describes an encoding

getContent

Tag lets you get content as a byte array. Parameters are:

1) id Describes a name for the page scope variable (type is byte []).

stopChain

Tag lets you terminate request chain. Parameters are:

1) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (stop processing)

for downloading:

Library: generic1flt.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: