|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
HelloWorldServlet2 except that it uses
HttpServlet#getServletConfig()#getServletContext() to retrieve the
ServletContext and from there it reads the attribute values to demonstrate that it does
not mater how you retrieve the ServletContext, they are all functionally equivalent.HelloWorldServlet1 except that it uses
HttpServletRequest#getSession(boolean)#getServletContext() to retrieve the
ServletContext and from there it reads the attribute values to demonstrate that it does
not mater how you retrieve the ServletContext, they are all functionally equivalent.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||