Also, if one would want to leverage the Taglib functionality of JSP's in having a templating tool other than XSL, does there exist a solution?
Now, can I have a JSP which takes Java objects instead of the XML as input and give an output as an HTML, XML or simple text?
Originally posted by James Clark:
What you mean by "takes Java objects instead of XML as input" is unclear.
Originally posted by James Clark:
However, this is not the purpose of Java Server Pages technology..... The first step is process the Java object and get an XML representation of it. (Check out XMLBeans and JAXB API). The second step would be to transform the XML to HTML, XML or simple ASCII text with an XSL stylesheet using the JAXP API.
Originally posted by James Clark:
Again, you can certainly create your own JSP elements that do the processing above. But, the XSL was designed specifically for processing XML data, so why you would want to deviate from the norm and write code for your own transformations is questionable.
I don't want to create any taglibs/elements as such. There are plenty of them which are already existent like the JSTL library. I just wanted to leverage the use of these libraries and avoid the overheads associated with using XSLs.
<p><b>Bob Jones</b></p>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |