struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Bryant <dbry...@scra.org>
Subject Re: How to redirect to "http://www.cnn.com" from Struts Action?
Date Fri, 13 Jun 2003 20:29:17 GMT
I believe this will work

declare this forward as a global or local forward
<forward name="cnn" path="http://www.cnn.com" redirect="true"/> 

from an action do: return mapping.findForward("cnn")

or from a jsp call <logic:forward name="cnn"/>  (has to be global for
jsp one to work.

Hope this helps.

Doug



On Fri, 2003-06-13 at 15:46, J. Jason Zhou wrote:
> It seems Struts ALWAYS prefix myapp context so it becomes
> 
> /myapp/http://www.cnn.com
> 
> --
> Best Regards,
> 
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D,
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: jason.zhou@sas.com
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  wbryant@icfconsulting.com
        dbryant@scra.org


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


Mime
View raw message