Writing XML/XSLT instead of JSPs in a J2EE/Struts web project.

Discussions

Web tier: servlets, JSP, Web frameworks: Writing XML/XSLT instead of JSPs in a J2EE/Struts web project.

  1. HI,

    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
    Dhana
     
          Message #115610 Mark as noisy Mark as noisy Mark as noisy Post reply Post reply Post reply Go to top Go to top Go to top
     
    Check out Domify in Maverick
    Posted By: Kris Thompson on March 29, 2004 @ 05:34 AM in response to Message #115601 0 replies in this thread
    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.


    http://mav.sourceforge.net/
    http://domify.sourceforge.net/
          Message #115923 Mark as noisy Mark as noisy Mark as noisy Post reply Post reply Post reply Go to top Go to top Go to top
     
    Writing XML/XSLT instead of JSPs in a J2EE/Struts web project.
    Posted By: fdsfdf sdfasd on March 31, 2004 @ 05:21 AM in response to Message #115601 0 replies in this thread
    Hi,

    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..
    etc..

    Thanks in advance..
    Dhana
  2. Hi,
    Using XSLT might sound good at a first glance but you have to consider speed and scalability. Also you might consider if your team has XSLT skills, which are not as common as JSP ones.
    Best regards, Mircea
  3. Have you considered using the Cocoon Framework. It is an XML/XSL based MVC architecture and it worked wonders for me.
    I've developed medium/large web projects with cocoon/J2EE (EJBs) and the performance bottlenecks were exactly at the presentation layer, the XSLT processing.
  4. To my experience, XSLT transformation == S...L...O...W...

    I will use XML/XSLT for transformation of static content.
    e.g. DocBook to HTML and post it on the web.

    But never will I use it for dynamic stuff.