> Hi All,
>
> I have a login page which "POST"s userid and pwd to a (redir.jsp) jsp page
> which if login is successful forwards a GET request
> (/servlet?reportName=test) to a  "CONTROLLER" servlet. The problem is
> since the first request was a "POST", when I forward the "GET" request to
> the servlet, the doPost method is going to get executed so to overcome
> that I overloaded the service method. Now the problem is when I do
> request.getParameter("xx") I get a nullpointer exception that is if I go
> through the redirecting jsp page but if I execute the servlet directly it
> works fine. Now I did look into the archives and found some posts like
> this but couldnt find a solution for it.  The only possible solution that
> I figured was to use sendRedirect instead of forward. In one of the posts
> from Craig, he suggested writing a wrapper class around the request whose
> getMethod would return "GET", tried that and couldnt get that to work
> either.
>
> One weird thing though, in my project before this, the jsp page(redir.jsp)
> was forwarding to another jsp page(results.jsp) and it was working.
>
> I am using JRUN 2.3.3 Build 155 on WinNT 4
>
> Any help/ideas/sugggestions would be greatly appreciated.
>
> Thanx
>
> Asim Imam
Java  Developer
> @AT&T Tax Systems Group
>
>

___________________________________________________________________________
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

Reply via email to