| 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
|
 |
 |
|
|
subject: what will go in init() methord when JSP get compiled
|
|
|