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
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: what will go in init() methord when JSP get compiled
 
Similar Threads
jsp:text question
How to write jsp with xml syntax
Cookies are not deleting
Escaping in JSP-Documents
xsl and jsp