You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by douglas reames <do...@hotmail.com> on 2003/07/01 02:31:15 UTC

Re: ForwardAction class for interservlet communication

>Is there a straightforward way to forward a request to another servlet in 
>the same container?

By straight forward I mean, using struts-config only.

regards,
Doug Reames


>From: "douglas reames" <do...@hotmail.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>CC: dougr@rmsfinance.com
>Subject: ForwardAction class for interservlet communication
>Date: Mon, 30 Jun 2003 21:10:44 +0000
>
>I thought that interservlet communication would be a simple matter of 
>creating the correct Action Mapping in struts-config, like so [ Example:  
>struts application calls cocoon URI ]:
>
><action
>        path="/spreadsheet/Cocoon-Render"
>        type="org.apache.struts.actions.ForwardAction"
>        name="articleForm"
>        scope="request"
>        parameter="/webapps/cocoon-reports/reames.xla"/>
>
>However, the parameter address can not be resolved as it is written - 
>because this resource does not appear on the struts applications classpath. 
>  And the 'parameter' attribute insists that the string begin with "/", so 
>I can not provide the value:  
>"http://localhost/webapps/cocoon-reports/reames.xla".
>
>Is there a straightforward way to forward a request to another servlet in 
>the same container?
>
>best regards,
>Douglas Reames
>
>_________________________________________________________________
>Tired of spam? Get advanced junk mail protection with MSN 8. 
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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