I am trying to do a forward whilst encoding the session id in the URL (so Im not reliant upon cookies). I have tried both the following:
Neither seems to work, data put in the session is not carried over to subsaquent JSP. The only examples I can find are for a sendRedirect, not a forward.
Thanks for any help
you might want to try a doPost instead of doGet.
The problem is that the request object is probably overwriting the query string in the URL. Try this instead,
request.setQueryString(URLEncoder.encode("All the parameters");
context.getRequestDispatcher("Actual redirect URL").forward(request, response);