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???
Discussions
Web tier: servlets, JSP, Web frameworks: Struts' Action Classes get Called Twice in JBoss
-
Struts' Action Classes get Called Twice in JBoss (1 messages)
- Posted by: Alex Alex
- Posted on: August 12 2004 23:55 EDT
Threaded Messages (1)
- Struts' Action Classes get Called Twice in JBoss by foo bar on August 20 2004 22:31 EDT
-
Struts' Action Classes get Called Twice in JBoss[ Go to top ]
- Posted by: foo bar
- Posted on: August 20 2004 22:31 EDT
- in response to Alex Alex
post your tiles definitions for ".homeDef" and ".registrationDef"...