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]

Reply via email to