Hi
The first message didn't seem to get through so I will try again.
- Klaus
-------------------------------------
> Hi
>
> I have run into a problem with obtaining a RequestDispatcher object when
> using URL rewriting in a servlet.
>
> The problem occurs in a servlet which handles POST messages from a FORM.
> If any errors in the data input occur then I would like to forward to
> another page. To do that I obtain a RequestDispatcher object.
>
> The code in the servlet looks like this:
>
> eUrl = response.encodeURL("/Registration.jsp");
>
> RequestDispatcher rd = getServletContext().getRequestDispatcher( eUrl );
>
> if ( rd != null ) {
> rd.forward(request, response);
> }
> else {
> System.err.println("Could not obtain request dispatcher object");
> }
>
> In the case where the browser does not support cookies this does not work
> (getRequestDispatcher() returns null). I have tried Nokia WAP Toolkit and
> Netscape (when disabling cookies - it works fine when cookies are
> enabled). To me it looks like the method getRequestDispatcher() does not
> work properly when session id is appended to the path. Is this a bug or is
> there another way of implementing such functionality?
>
> FYI, I am using OrionServer 1.3.8 and JDK 1.3.
>
> Thanks a lot in advance.
>
> - Klaus