Is that because your action is started by saveRegistration.do and the validation is done by registration.jsp? You don't have the '.jsp' in the input. What happens then?
Does the action actually know which form triggered it? the (in your case) SaveRegistrationAction program is started after registrationForm program. This is all handled by the Controller. But how does the Controller tell the saveRegistrationAction that it was triggered by registration.jsp? If you don't know either, maybe that's the answer. Bert Catsburg Mike Mattox wrote:
Looking at the struts-config.xml from the struts-example app: <!-- Save user registration --> <action path="/saveRegistration" type="org.apache.struts.webapp.example.SaveRegistrationAction" name="registrationForm" scope="request" input="registration"/> I'm confused about the input parameter. Why do we need to specify the input? Doesn't the Action know which page the user came from? The reason I ask is because this ties the Action to a specific page, which prevents reuse. Let's say I have an action that I want to be used by multiple JSP's, and inside the action if there's an error it should return to the previous page. Is there an easy way to use the same action twice? Thanks, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]