You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Bolsover <da...@bolsover.com> on 2002/11/15 16:37:59 UTC
Dynamic Forward
Hi all
I have a problem with a dynamic forward - can anyone assist?
The url of the forward is generated by:
StringBuffer sb = new StringBuffer();
sb.append("http://www.someurl/actionpath?");
sb.append("&customer=" + customer.getName());
sb.append("&address=" + customer.getAddress());
etc..
ActionForward forward = mapping.findForward("success");
forward.setPath(sb.toString);
forward.setRedirect(true);
mapping.addForward(forward);
return forward;
The forward above works fine - but - the receiving URL requires that newlines in
the address part of the forward have to be encoded with " " - with the above
scheme this does not seem to be possible - any ideas?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>