hello dale- in my xwork discoveries i came upon the ShortCircuitableValidator defined as /** Copyright (c) 2002-2006 by OpenSymphony All rights reserved.*/ package com.opensymphony.xwork.validator; /** * This interface should be implemented by validators that can short-circuit the validator queue that it is in @author Mark Woon */ public interface ShortCircuitableValidator { /*** Sets whether this field validator should short circuit the validator queue * it's in if validation fails * @param shortcircuit true if this field validator should short circuit on * failure, false otherwise */ public void setShortCircuit(boolean shortcircuit);
/*** Gets whether this field validator should short circuit the validator queue * it's in if validation fails. * @return true if this field validator should short circuit on failure, * false otherwise*/ public boolean isShortCircuit(); } //action class not implements ShortCircuitableValidator public class MyAction extends ActionSupport implements ShortCircuitableValidator { OgnlValueStack vs = new OgnlValueStack(); String isBogus =(isShortCircuit()==true)?"true":"false"; try { vs.setValue("shortCircuitRedirectUrl", isBogus, 1); } catch (OgnlException e) { log.debug("OgnlException happened here"+e.getMessage()); } } would this work for shortCircuitRedirectUrl ? Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 27 May 2009 11:25:47 -0400 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: Struts2 Interceptor > > Stefano Corallo wrote: > > i think that this is the only one solution. Thanks guys for your reply. > > If you don't have a base class for all of your actions, you might be > able in the interceptor to get ahold of the ognl valueStack and set the > value directly, then refer to #shortCircuitRedirectUrl (in the ognl > dictionary rather than an attribute on action (top of ValueStack)). > > -Dale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009