Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

classes involved in generating a servlet from a jsp  RSS feed

 
Pradeepta Bhattacharya
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!