You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erez Efrati <er...@netmedia.net.il> on 2003/08/14 12:07:28 UTC
Registration and action mappings
I have a registration wizard. In each JSP member of this wizard I have a
<html:form action="/Signup.do">.
<action name="signupForm" type="web.SignupAction" validate="false"
parameter="method" scope="session" path="/Signup">
<forward name="page1" path=".page1 " />
<forward name="page2" path=".page2" />
<forward name="success" path=".signupSuccess" />
</action>
Note that the scope is "session". Now I want to write the part of
editing these pages separately. Thing is I want to use the same
SignupAction (subclass of DispatchAction), but I can't use the same
action-mapping cause I need it now to be scope="request". Also, in terms
of security & roles, I need the editing and wizard-creation mode action
mappings to be different in order to set different security settings.
The signup creation is open to all, while the editing is only for logged
on users (role=User).
I don't know if it would work (I will try it) is having two <html:form
action="/Signup.do?method=create"> for wizard creation mode, and
<html:form action="/EditRegistration.do?method="??" > Or use javascript
to change these dynamically with onclick on the buttons.
I would really appreciate any comment here,
Erez
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org