Web tier: servlets, JSP, Web frameworks: Writing XML/XSLT instead of JSPs in a J2EE/Struts web project.
- Posted by: Dhanasekaran V
- Posted on: March 29 2004 04:32 EST
We are currently re writing an existing web application
using J2EE/Struts framework./DAO..
The application has over 70 JSPs to be written ,these pages
are basically Input criteria or out out page .
The contents for each jsp is different and also the layoout
except header/footer and side menu links..
We are planning MVC2 (Struts) architecture.
We will be using the existing Database/tables in MS SQL Server 2000.
However,we are told to into the possiblity of using a few
XML/XSLT instead of writing 70 odd JSP pages so that the project effort can be reduced.
I would like to know if anybody has done similar projects
using XML/XSLT instead of JSP in web application.
Your help will be highly appreciated...
Thanks in advance
- Check out Domify in Maverick by Kris Thompson on March 29 2004 06:34 EST
- Writing XML/XSLT instead of JSPs in a J2EE/Struts web project. by Dhanasekaran V on March 31 2004 06:21 EST
There is a seperate component in Maverick called Domify. Domify, http://domify.sourceforge.net/, is able to take your model objects and turn them into dom objects and you can use xslt to output your site. Maverick has an example done in both jsp, velocity and domify if you want to see. However in their example there are nearly equal number of xslt pages as jsp pages, but I could see that if you have a heavily data driven page that you could reduce that number with xslt.
I could run the Friendbook example in domify and see how xslt is used instead of
JSP.However the example given is too simple and I am afraid how this can
be extended for real web application that has medium/complex views.
Pls let me know if anyone has used this for real web application and site URL..
Thanks in advance..