zul;jami wrote:
I am using struts2+spring+jpa+ajax+sitemesh


WHile onload only execute method should be called,
but update is also called.Why

this is my struts.xml
<action name="login"  class="login">
       <result name="input">login.jsp</result>
       <result name="error">login.jsp</result>
       <result>/pages/dashboard_main.jsp</result>
</action>
 <action name="login_*" class="login" method="update">
            <result name="success">/pages/dashboard.jsp</result>
        </action>

This is just a guess, but I think a wildcard action name like login_* is magic, in that it will match /login as well as /login_xxx. What happens if you remove one or other of those action mappings?

On the other hand it seems odd that two different action methods would be called. Have you checked to confirm that's happening within a single request? Another possibility is you have something in the returned page (e.g. an img tag with an empty src attribute) that is triggering a second request.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to