Forums Register Login

JSP Base class

+Pie Number of slices to send: Send
Is it true that in the HttpJspBase abstract class the methods init() service() and destry() are marked final and that it is from these respective methods, the corresponding jspInit() _jspService() and jspDestroy() are called??
+Pie Number of slices to send: Send
I think that HttpJspBase is an Apache implementation, so you should not have to care about what it does. You can check the API on the net, for example :
http://www.jdocs.com/jasper/5.0.27/api/org/apache/jasper/runtime/HttpJspBase.html#init(javax.servlet.ServletConfig)
+Pie Number of slices to send: Send
I asked this because there was a question like what prevents us from overriding init(), service() and destroy(). So the reason that I found out was, they are declared final. Not only this but I guess it should be the standard for a web container. Am I right Satou??
+Pie Number of slices to send: Send
 

So the reason that I found out was, they are declared final. Not only this but I guess it should be the standard for a web container


The container provider decided to make them final because you should not implement them. As I explained in a previous thread, those are crucial servlets life cycle methods, which you should not deal with in JSP files. The same methods, called jspXXX were made for this purpose.
So the way of thinking is not "methods are final so I can't override", but "I will use jspInit, _jspService and jspDestroy because that's the only thing I have".
I will open the floodgates of his own worst nightmare! All in a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1711 times.
Similar Threads
Can a FrontMan class access the argument to @FrontmanCommand value
double value
Calculate Date having DIFFERENT DATE FORMATS
what is the different between doClick and OnClick methods
comparing 2 date objects...very urgent
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:20:21.