views:

124

answers:

0

I am in a class that implements javax.servlet.filter.

From this class I want to call ((HttpServletResponse)servletResponse).sendRedirect(url) and redirect to a different url (to a jsp with an html form) - the thing is - the url has a very long parameter (could be 5000 bytes long)

I understood that there is a limitation on the size of the url that can be redirected.

What are the alternatives to get the information from the filter to the form?

Would forwarding the request work: request.getRequestDispatcher(url).include(request, response) ?