There is a limit to the length of an URL, but it's
server dependent. Why not use a request attribute,
like this, in your servlet:
request.setAttribute("MYATTRIB", attrib);
dispatcher=servletContext.getRequestDispatcher
("whatever.jsp");
dispatcher.forward(request, response);
Then in your jsp, if you wanted to print it, or use it
in a tag, for example, you could use this:
<%= request.getAttribute("ARTISTNAME") %>
- David Gallardo
--- Tedi Zanfolim <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I am pretty new to developing in the Web tier of
> the J2EE and I was wondering about the following:
>
> - I can invoke a JSP from a Servlet, redirecting the
> the response page from the sevlet, and pass to it
> the
> result of an internal processing, something like
> this:
>
> redirect("test.jsp" + "?xml=" + myProcessingResult);
>
> I think there is a limitation on the length of the
> URL
> that can be composed this way, that is, all the
> string
> passed as a parameter to 'redirect' must be no
> longer
> than 240 characters.
>
> Could someone tell me if this is true or not?
>
> Thanks in advance,
>
> tiz
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm