Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Overriding JSP Server Generated Servlet Subclass
How do I have the JSP-generated servlet subclass be my own custom servlet class, instead of the default?
✍: FYICENTER.com
One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that may be provided by the JSPengine.
In any case, your new superclass has to fulfill the contract with the JSP engine by: Implementing the HttpJspPage interface, if the protocol used is HTTP, or implementing JspPage otherwise Ensuring that all the methods in the Servlet interface are declared final.
Additionally, your servlet superclass also needs to do the following:
If any of the above conditions are not satisfied, the JSP engine may throw a translation error.
2007-04-03, 5712👍, 0💬
Popular Posts:
What does address of operator do in background? The AddressOf operator creates a delegate object to ...
What does static variable mean? There are 3 main uses for static variables: If you declare within a ...
What is the difference between const char* p and char const* p? In const char* p, the character poin...
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSome...
What is difference between ADPATCH and OPATCH ? # ADPATCH is utility to apply ORACLE application Pat...