You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Afshartous, Nick" <ni...@proactcorp.com> on 2003/06/25 20:04:06 UTC

can't redirect out of the context

Hi,

I'm trying to have an Action redirect to yahoo using the lines
below. However, the servlet context is getting prepended
and the error is

   The requested resource (/acme/www.yahoo.com) is not available.

Setting contextRelative did not make a difference.

Thanks for any suggestions.  
--
    Nick



	
 ActionForward forward = new RedirectingActionForward("www.yahoo.com");

 forward.setContextRelative(false);

 return forward;