This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes rd.forward() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "rd.forward()" Watch "rd.forward()" New topic
Author

rd.forward()

Meghasyam Bokam
Greenhorn

Joined: Feb 27, 2003
Posts: 16
Hi,
when we call rd.forward("/servlet/AccountServlet") in the doPost() method of LoginServlet, which doXXX() method is called in the AccountServlet. Assume both LoginServlet and AccountServlet are in the same web appl.
Thanks,
Meghasyam.


Regards,<br />Meghasyam.<p>SCJP1.4
Daniel Zhang
Greenhorn

Joined: Aug 07, 2003
Posts: 2
I think it'll be doGet() since the default method is GET if POST is not explicitly specified.
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Well best way to learn is to try it out and see which method it calls but it appears it will be the doGet


The secret to creativity is knowing how to hide your sources.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: rd.forward()
 
Similar Threads
Servlet is not running
How does the url "webappname/servlet/..." work well?
prb from Hemant Deshmukh...
getRequestDispatcher problem
HTTP Status 404 - /ch1/Serv1/