I've a LoginAction class which extends DispatchAction. When my login page loads it calles the uri /login.do?a=login. And on submitting this page, it goes to /login.do?a=authenticate.
My issue is that I've to validate the form when I submit. Right now, when I submit, I don't get any validations performed. Bellow is the Struts entry I've.
Hello
I've a LoginAction class which extends DispatchAction. When my login page loads it calles the uri /login.do?a=login. And on submitting this page, it goes to /login.do?a=authenticate.
My issue is that I've to validate the form when I submit. Right now, when I submit, I don't get any validations performed. Bellow is the Struts entry I've.
<action path="/login" type="gov.ed.fsa.ui.web.action.LoginAction"
parameter="a"
scope="request"
name="loginForm"
input="/login.do" >
<forward name="login" path="login.page"/>
<forward name="success" path="login.success"/>
<forward name="failure" path="login.error"/>
</action>
Please help
I found what was wrong. When I modified my input argument from input="/login.do" to input="login.page" everything worked.