Telmo S� wrote:
> Hello all!
> How do call a Get Servlet from a Post Servlet.
> I tried to do that using:
>
> getServletConfig().getServletContext().getRequestDispatcher("/servlet/agenda
> .agendaLe").forward(req,res);
>
> but i get:
>
> 400 Bad Request
> HTTP method POST is not supported by this URL
>
> I suppose i could call the doGet method from a dummy doPost in the GET
> servlet but i am wondering if there is other way.
>
This is what you need to do. RequestDispatcher.forward() uses the same
HTTP method (GET vs. POST) as was used to call the original request.
>
> Thank you for any input.
>
> Telmo
>
Craig McClanahan
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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