struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaƫl di Cicco <>
Subject Re: Solution: Subcall and Back in Struts
Date Wed, 14 Jan 2004 09:55:37 GMT
Seems interesting. I have looked at the code but haven't tested yet.
We have precisely this problem in our application : we don't know where we
came from to end up at one Action.
I'm only wondering why all the methods are static synchronized ? is it
because supposebly there might be more than one instance of this class per
user ?

----- Original Message ----- 
From: "Manfred Wolff" <>
To: "Struts Users Mailing List" <>
Sent: Friday, January 09, 2004 5:33 PM
Subject: Solution: Subcall and Back in Struts

> Hi.
> At several projects I needed a struts based "browser back" mechanism or
> a "subcall" mechanism. In both cases you have to store the last request
> (with request parameter) an restores it.
> Subcall means: From different contextes I navigate to the same site. To
> increse usability I will the user let go back to the context he comes
> I have written a BaseBackAction which all actions must subclass. This
> base action saves the requestpath and pushed it on a stack. To go back
> you have to implement a back-path in the struts-config.xml like
>         <action path="/back" type="org.mwolff.struts.actions.BackAction"/>
> The BackAction pops the path from the stack and forwards to it. The
> stack is limited to n entries, 10 default. If no back is possible, the
> BackAction forwards to the same
> path, where it calls from.
> Only actions that subclass from the BaseBackAction can use this
> automatic mechanism. So there is a second mechanism to register if you
> don't use this base action.
> The whole documentation is on
> There you can also download the two classes.
> Improvments and suggestions are welcome.
> Manfred
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message