Forums Register Login

Web Application Class loader.

+Pie Number of slices to send: Send
From the Web Application Class loader section of Servlet 2.4 specification
As described in the J2EE license agreement, servlet containers that are not part of a J2EE product should not allow the application to
override J2SE platform classes, such as those in the java.* and javax.* namespaces, that J2SE does not allow to be modified. Also,
servlet containers that are part of a J2EE product should not allow the application to override J2SE or J2EE platform classes,
such as those in java.* and javax.* namespaces, that either J2SE or J2EE do not allow to be modified.

Above both sentences have "that either J2SE or J2EE do not allow to be modified."
Does override mean extending class? If yes i can offcourse extend any non-final class in the name space *.java & *.javax, In fact the
very basic servlet extends HttpServlet. So what excatly does the above sentences defined in the specs mean?
Based on the answer , I can conclude whether the answer to Q - 14 [pg 610, From HFServlets & JSP 1 st edition] .
+Pie Number of slices to send: Send
Some one reply.
I dont want to mug it up
+Pie Number of slices to send: Send
Note that it says "overriding classes". If that meant extending, it would say "overriding methods".

It really talks about modifying classes; in other words, replacing an existing class in the java.* and javax.* hierarchies with a different one.
Onion rings are vegetable donuts. Taste this 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 802 times.
Similar Threads
Question on HFSJ web deployment question
null pointer in _jspInit
validateJarFile - Reg
Deciphering the Servlet Spec (2.4)
web application class loader problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:36:28.