You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hannan, Seamus" <Se...@fid-intl.com> on 2003/05/06 22:59:38 UTC

Question re. Struts Tiles forward to URL

Hi,

I have a problem using Struts to forward to an exernal URL.
I have read a number of suggestions, including what I am now using, the use
of response.sendRedirect from the action.

There is a complication in that I need to use a tile to display the final
page correctly.
This means that I need to call the action from the tile.

Explanation Of What I Need To Do:
Tile Calling Action -> Tile -> Display Redirect Action

I find that I can call the 'Display Redirect Action' ok, however I get a
Servlet exception when I call the code below:

		response.sendRedirect(response.encodeRedirectURL(url));
error:
[ServletException in:/DisplayRedirect.do] null' 

(I can call the URL successfully from a JSP file, but only outside the
struts framework)


I am just wondering if anybody has found a solution to a similar problem?

Thanks.
Seamus Hannan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org