C
Chris R.
Hey,
I'm new to struts and have a beginners question.
There are different ways to define an action:
<action path="/LoginForm"
type="org.apache.struts.actions.ForwardAction" parameter="page.login" /
or
<action path="/logindaten" forward="page.login"></action>
or
<action path="/logindaten"
type="de.test.LoginAction"
input="page.login"
name="loginForm">
<forward name="success" path="page.welcome" />
<forward name="failure" path="page.error" />
</action>
When do I have to use which one? When do you use the standard
ForwadAction?
Is the last definition only important if you have a formular in jsp
which you have to check
with an action?
thanks
chris
I'm new to struts and have a beginners question.
There are different ways to define an action:
<action path="/LoginForm"
type="org.apache.struts.actions.ForwardAction" parameter="page.login" /
or
<action path="/logindaten" forward="page.login"></action>
or
<action path="/logindaten"
type="de.test.LoginAction"
input="page.login"
name="loginForm">
<forward name="success" path="page.welcome" />
<forward name="failure" path="page.error" />
</action>
When do I have to use which one? When do you use the standard
ForwadAction?
Is the last definition only important if you have a formular in jsp
which you have to check
with an action?
thanks
chris