struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Vlasov <vigo...@mail.ru>
Subject Re: Why does update action fire on load
Date Fri, 26 Oct 2007 07:53:50 GMT

Are you sure than you delete:
 <action name="login_*" class="login" method="update">
            <result name="success">/pages/dashboard.jsp</result>
        </action>

When call login_input.jspa then "input" method called

When call login.jspa then "execute" method called.




zul;jami wrote:
> 
> After changing my struts.xml as you said 
> also my action fires execute and also update.
> I do not want to fire update.Pls help
> 
> 
> 
> 
> Igor Vlasov wrote:
>> 
>> I use
>>  <action name="login_*" class="login" method="{1}">
>>        <result name="input">login.jsp</result>
>>        <result name="error">login.jsp</result>
>>        <result name="success">/pages/main.jsp</result>
>>        <result name="success2">/pages/dashboard.jsp</result>
>> </action> 
>> 
>> 
>> 
>> zul;jami wrote:
>>> 
>>> I have two methods in action extending actionsupport in struts2.
>>> WHen I login it should execute only the execute method.BUT
>>> it also fires update another method which I want to call some other
>>> time.
>>> 
>>> THis is my struts.xml
>>> **********
>>> <action name="login"  class="login">
>>>        <result name="input">login.jsp</result>
>>>        <result name="error">login.jsp</result>
>>>        <result>/pages/main.jsp</result>
>>> </action>
>>>  <action name="login_*" class="login" method="update">
>>>             <result name="success">/pages/dashboard.jsp</result>
>>>         </action>
>>> ***************
>>> 
>>> 
>>> Piero Sartini-3 wrote:
>>>> 
>>>> Am Montag, 22. Oktober 2007 13:23:38 schrieb zul;jami:
>>>>> Still I am getting the error,
>>>>> my execute also fires update on load.
>>>>> There is no img tag with empty src attribute
>>>> 
>>>> execute() is triggered when the action is called, not only when you
>>>> submit 
>>>> your data.
>>>> 
>>>> 	Piero
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Why-does-update-action-fire-on-load-tf4670323.html#a13422424
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message