You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thierry Thelliez <th...@earthlink.net> on 2003/08/18 06:57:14 UTC
JSP Custom tag and XML/XSL transformation
Assuming that a custom tag outputs an XML formatted data structure, do we
have to use a temporary file for an XSL transformation?
What we did so far is to:
1- define a random file name from the JSP page,
2- call the tag from the JSP page (with the random file name as parameter),
3- have the tag export the XML in a temporary file (filename defined above),
4- load the XML file and execute the XSL transformation from the JSP page,
5- delete the file after transformation in the JSP page.
Is that a good practice (using a temporary file)? Or is there a way to have
the XML directly returned in a String/Stream.
Regards,
Thierry Thelliez