can we override jspinit,jspdestroy,jspservice methods in our own jsps?
iam new to java.
iam now learning these topics.
can we override jspinit,jspdestroy,jspservice methods in our own jsps?
plz send me with explanation.
iam new to java.
iam now learning these topics.
can we override jspinit,jspdestroy,jspservice methods in our own jsps?
plz send me with explanation.
Probably not. But in any case it would be a really bad idea to do that, so my advice would be to assume the answer is "NO" and go back to learning how to write JSPs.
well, the JSP will become the content of the jspservice method.
So yes, you can override that one (in fact there's no way you will NOT override it when creating a JSP :) ).
But indeed, you should not even have the beginnings of any thought about "methods" or "overriding" anything when writing JSPs.
You should not in fact use a single line of Java code when writing them.