Here's a more detailed (and further) reply to the question of what exactly a RequestDispatcher does: If you call a servlet "directly", that results in a call to the doGet method. If within that doGet, you forward to a second servlet via a RequestDispatcher object, then the second servlet's doGet is executed. If however you called the first servlet via a submit in a form, then a doPost is executed in the first servlet. So (in the code of the doPost of the first servlet), if you forward that request via a RequestDispatcher to a second servlet, then a doPost is executed in the second servlet. So, briefly, a RequestDispatcher forwards a get request as a get and a post request as a post. I have some trivial java code that illustrates this, if anyone is interested. (Sorry if I belabour the obvious, but a parallel question was asked in another forum, and i thought the answer bears repeating.) Geeta ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
