• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
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
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic