File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes JSP and XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP and XSL" Watch "JSP and XSL" New topic


Anand, Srivastava

Joined: Mar 08, 2001
Posts: 3
Is it possible to combine JSP and XSL to isolate the logic and the dispay?
manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
sure it is..did u try?
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
Yes, easily. With Xalan, for example:

where instruments.xml is the input document and XSLTSample.xsl is the stylesheet. Chapter 16 of JSP: The Complete Reference shows an example of this.
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets

Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
I agree. Here's the link:
subject: JSP and XSL
It's not a secret anymore!