Struts' Action Classes get Called Twice in JBoss

Discussions

Web tier: servlets, JSP, Web frameworks: Struts' Action Classes get Called Twice in JBoss

  1. Struts' Action Classes get Called Twice in JBoss (1 messages)

    I have not been able to figure why my action classes get called twice everytime I use a tile definition in the forwards tag. This only happens when I use tile's definitions in the forward's tag for the action mapping.

    THis will cause the action RegisterUserAction to get called twice...
    <action path="/registerUser"
    type="com.cr.ct.ui.user.RegisterUserAction"
                name="registerUserForm"
                validate="false">
          <forward name="homePage" path=".homeDef" />
          <forward name="failedRegistration" path=".registrationDef" />
        </action>


    This will work as it is supposed to.
    <action path="/registerUser"
    type="com.cr.ct.ui.user.RegisterUserAction"
                name="registerUserForm"
                validate="false">
          <forward name="homePage" path="/home.jsp" />
          <forward name="failedRegistration" path="/register.jsp" />
        </action>


    Any ideas???
  2. post your tiles definitions for ".homeDef" and ".registrationDef"...