Forums Register Login

question from mock exam

+Pie Number of slices to send: Send


How come the above will compile and give output the contents of menu.jsp followed by "Output after menu.jsp"???

THE doGet(..) METHOD IS DECLARED AS protected...
+Pie Number of slices to send: Send
because it is called by the service() which you get when you extend HttpServlet.
by the way doGet() doPost() are protected. check the API
[ May 07, 2008: Message edited by: Musab Al-Rawi ]
What? What, what, what? What what tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 704 times.
Similar Threads
RequestDispatcher : content in the forwarding page.
Passing List from Servlet to jsp ? - value of list becomes NULL
Question from Marcus Green
Can we Have Write Service,doGet,doPost method implementation in a single servlet
What will happen when you attempt to compile and run the following code
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:15:37.