aspose file tools*
The moose likes Servlets and the fly likes what will go in init() methord when JSP get compiled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what will go in init() methord when JSP get compiled" Watch "what will go in init() methord when JSP get compiled" New topic
Author

what will go in init() methord when JSP get compiled

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

Like when i write in JSP

<jsp:scriptlet>
out.println("JAI SHRI RAM");
</jsp:scriptlet>

and when it is compiled into servlet then it will go under _jspService() methord.

I want to ask that from a JSP page what will go in init() methord.

Thanks
Regards
Gaurav
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

One way to find out is to look at the generated source code.
In Tomcat, you will find this under the tomcat/work directory.

Other servers will have it in a different place.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what will go in init() methord when JSP get compiled