webapp:
specified on servlet's definition of web.xml
    <servlet>
        <servlet-name>dwr</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
            <param-name>snafu</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
as you can see from the example critical parameter snafu is set to true

Action specific:
a param can be specified for a specific interceptor for specified action e.g.
        <action name="submitApplication" 
class="org.apache.struts2.showcase.validation.SubmitApplication" 
method="submitApplication">
            <interceptor-ref name="fubar">
                <param name="expectedOutcome">LOSELOSE</param>
            </interceptor-ref>
...
        </action>
as you can see when the fubar interceptor is fired 
critical parameter expectedOutcome of LOSELOSE is transmitted

hth
Martin 
______________________________________________ 
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: Thu, 6 Aug 2009 18:17:45 +0800
> Subject: param for action in struts.xml
> From: kenshin...@gmail.com
> To: user@struts.apache.org
> 
> Hi I want to set initial value for an action
> I believe the way is
> <action name="myAction" class="xxxx.xxx.xxxAction">
>    <param name="myParam">myParamValue</param>
> </action>
> 
> then "myParamValue" will be set to my Action's myParam property.
> 
> but i am not getting anything in my action class.
> Am i missing something? or its not how it works?
> 
> I am using Struts 2.1.8 SNAPSHOT.
> 
> Thanks

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Reply via email to