*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How can we override jspInit() in my JSP if I do not use scripting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "How can we override jspInit() in my JSP if I do not use scripting" Watch "How can we override jspInit() in my JSP if I do not use scripting" New topic
Author

How can we override jspInit() in my JSP if I do not use scripting

Simran Dass
Ranch Hand

Joined: Jan 09, 2010
Posts: 183

Suppose I have a jsp page A.jsp in which I am doing something in jspInit() by overriding it. I use scriptting <%! %>
to override jspInit() as shown below :-

A.jsp
---------




My question is how can I override jspInit() in a jsp page without using scripting i.e. without using <%! %>.

PLEASE HELP.

Regards
Simran
Stoian Azarov
Ranch Hand

Joined: Jun 01, 2011
Posts: 113
You can't. At least I am not aware of such method.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can we override jspInit() in my JSP if I do not use scripting
 
Similar Threads
Finding current URI?
jsp-lifecycle
include directive -> Can include web component?
How to include a HTML Page into another HTML page
variable access in jSP