aspose file tools*
The moose likes Struts and the fly likes Generating JSPs dynamically using XSL transformations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Generating JSPs dynamically using XSL transformations" Watch "Generating JSPs dynamically using XSL transformations" New topic
Author

Generating JSPs dynamically using XSL transformations

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Ok, sorry in advance for the weird question
Tom, I trust that you'll move this to the JSP forum if you consider it more appropriate.
So, here we go:
Is it possible with some existing tools to generate an XML document to be interpreted as the JSP source by the web container? It can be done the other way (JSP generating XML, which is handled by some filter) but could there (realistically) be a need for this kind of functionality?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Sue Spielman
Author
Ranch Hand

Joined: Apr 21, 2003
Posts: 56
JSP 2.0 has a number of XML support improvements so that a JSP document can be an XML document. The extension becomes .jspx . Check out the JSP 2.0 spec, I believe it is section 6 that explains all of this.
Sue


President/Consulting Engineer<br />Switchback Software LLC<br /><a href="http://www.switchbacksoftware.com" target="_blank" rel="nofollow">www.switchbacksoftware.com</a>
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Sue Spielman:
JSP 2.0 has a number of XML support improvements so that a JSP document can be an XML document. The extension becomes .jspx . Check out the JSP 2.0 spec, I believe it is section 6 that explains all of this.
Sue

jsp <---> asp
jspx <---> aspx
hmmmmmm, see a pattern here?


GenRocket - Experts at Building Test Data
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Who's the pattern originator here (is it MS or SUN)...
Cheers,
Anil


SCJP 1.5, SCEA, ICED (287,484,486)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Sue, what I meant was whether it's possible to generate the JSP code (the XML document) dynamically instead of a static source file, not whether it's possible to write a JSP completely in XML (I knew that one already).
Thanks anyway for bothering to respond to this strange stuff
[ May 30, 2003: Message edited by: Lasse Koskela ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating JSPs dynamically using XSL transformations