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" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


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



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to