This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp translated to Servlet...?  RSS feed

 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I need more info about the description about the converted servlets...Can any one help me to find the sol....I want to know each and every line ...how it will translated...pls help me..
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The big question that comes to mind is why do you need to know the source code of the generated servlet.
The source code that is generated is dependant upon the JSP compiler that you use. In your case you seem to be using Jasper from Apache which is fine.
If you have a bug then I would say that the chances are that it is an issue with your JSP page rather than the Jasper compiler.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sunil,
this is the jsp life-cyle phase
1. Page Translation - jsp to java servlet
2. Page Compilation - servlet compilation.
3. Load class - loading compiled class
4. Create instance - creates an instance of servlet.
5. call jspinit() -
6. call jspService()
7. call jspDestroy()
i hope this helps u..
raj
SCJP2
 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Raj...I understood a bit...Thank's for your help..
 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andy thanks for your info...I would ask you if I get an issue..
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!