• Post Reply Bookmark Topic Watch Topic
  • New Topic

How does the contents of the jsp file goes as a service method.  RSS feed

 
Mahesh Malviya
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a jsp file with some scriptlet inside. We can write jspInit() and jspDestroy() methods in the same jsp file. But I want to know that which part of jsp will go as a part of the service method.

Thanks and Regards
Mahesh Malviya
 
M. Gagnon
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mahesh Malviya:
But I want to know that which part of jsp will go as a part of the service method.


Hmmm. I think pretty much everything. If your curious, have a look at the compiled servlet (.java file) from your jsp. (DON'T mess with it, though.) The service method is actually called _jspService in a compiled jsp.

On my machine, running Tomcat, the compiled servlets are in:

C:\jwsdp-1.3\work\Catalina\localhost\my_app\org\apache\jsp
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!