<action path="/foo" type="com.sparrow.BlankAction"> <forward name="success" path="mydef" redirect="false" /> </action>
All the action does is returns a forward called success or whatever you choose.
On 15 Jun 2004, at 15:50, Bullard, James wrote:
1.) Is there any way to have a global-forward forward to a tile, Italwaystells me that such a path does not exist, meaning that rather thanrecognizethe page as tile def it thinks it is a page.
Hmm not sure what is wrong. You could try adding contextRelative="true"
to the global forward. We have some global forwards that look like:
<forward name="select.company.global" path="select.company.page" contextRelative="true"/>
Ok, the problem appears to be with the velocity link tool. Which is generating a link like:
http://localhost:8080/tsr/ui/select.company.page
for the forwards defined above. So not a specific struts question.
2.) I will rephrase this question because it was unclear. I have an action: edituser this action does some switching based on a parameter passed into the request (It is more or less functionally the same as the included DispatchAction)
So three different jsp pages call this action, and I must return to the page which called the action. So the question is, how do I from within an action element in struts-config tell the action in case of success return to the page which invoked the action. Obviously I could define 3 different actions, but this seems a little bloated no _ ?
Thanks in advance , jim.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]