Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP tag that forces JSP reprocessing

Status
Not open for further replies.

wac

Programmer
Sep 6, 2002
7
US
I need to write a JSP tag which either calls other tags or emits a string (like &quot;<tag:stuff blah='bla' />) which can be reprocessed by the JSP engine. I.e. I want to be able to force the JSP engine to reprocess the output.
This would allow me to write building block tags and construct more complex tags that use the building blocks. Is this possible???
 
Not simply that.

For example, if I have a JSP tag mytag1 which I want to use to generate the same HTML as mytag2 and some other stuff in addition, I'd like this...
<tag1:mytag1 />

to emit (using its pageContext.getOut())

<tag2:mytag2 />
...plus other html....


The problem is that the <tag2:mytag2> is not reevaluated by the JSP engine. It is processed by the browser directly, which ignores it cause its not HTML.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top