• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

classes involved in generating a servlet from a jsp

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
does anyone know how the servlet is generated by reading a jsp file. Can it be possible to convert the jsp file in a DOM object and then applying a predefined template thru an XSLT to generate the servlet file ..... what are the other considerations that usually goes in the process of developing a servlet out of a jsp page can the same procedure if i am right be used to generate the code for other technologies like EJB's and other templates .. kindly reply back as this is urgent
thanks in advance
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is nothing to stop you using XSLT to generate *.jsp files that could be compiled by your web server into the servlet classes.
I would imagine that the technology that is used to parse the JSP pages and then generate the servlet classes is very server-specific (probably also version specific) and so it would not be a great idea to go down this route as it would introduce a large number of potential dependancies.
As for the generation of EJBs etc, have a look at Xdoclet.org. There are many other alternatives as well.
 
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic