Martin Gainty wrote:
//action class not implements ShortCircuitableValidator
public class MyAction extends ActionSupport implements ShortCircuitableValidator
{
OgnlValueStack vs = new OgnlValueStack();
In an Action when I need the value stack I don't construct a new one but
instead get it from the ActionContext:
ActionContext.getContext().getValueStack()
would this work for shortCircuitRedirectUrl ?
If you want only some actions to be able to be short circuitable and
wanted to set that on a class by class basis, then this interface sounds
like a reasonable way to do so. I believe the OP wanted to be able to
have his logic work for *any* action. Adding to his base class would
work for any action that implements that base class, but not for a
simple action that uses the struts default action class, which is why I
suggested adding to the ognl context rather than setting a property on
the action on top of the stack. I don't believe the OP was asking about
something related to validation, but how to force users to a certain
page/form ("Oh, we have something we want to force you to do before you
do anything else").
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org