You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Abhinav (Cognizant)" <Ab...@cal.cognizant.com> on 2003/05/28 16:58:22 UTC

I dont understand whats wrong with this.

For my form validation failure, I have specified another action as Input.
When I submit to /result/view, the validation fails, I change one of my form-bean attribute in validate method itself.
It then goes to /login
and the validate method is again called. I find that the form-bean attribue has not changed.
Why is this happening?

	<form-beans>
		<form-bean name="vForm" type="strut.TerrZipAlgnForm"/>
	</form-beans>	

		<action
				path="/result/view"
				type="strut.Search"
				name="vForm"
				scope="request"
				parameter="view"
				input="/login.do"
				>
		<forward name="search_result" path="/searchresult.jsp"/>
		</action>
		<action
				path="/login"
				type="strut.LoginAction"
				name="vForm"
				scope="request"
				input="/error.jsp"
				>
				<forward name="firstpage" path="/searchform.jsp"/>
		</action>