I am making changes to an existing web application based on Struts1 - which already is made up of various forms & actions.
What I am trying to do is
- Add a few pages for the mobile version of website.
- For example, I want to add a JSP page that contains a form with a few fields (same as that in the PC version) with a submit button. On submit, I would like to call the same ACTION class which handled the form in the PC version.
Is this possible? Please point me to any links that explain the above.
Edit1:
a few lines from my struts-config.xml action-mappings.
<action path="/signupPC"
name="signupPCForm"
validate="true"
input="/signupFailedPC.jsp">
<forward name="success" path="/signupSuccessPC.jsp" />
<forward name="failure" path="/signupFailedPC.jsp" />
</action>
@Nathan How do I add mobile specific pages here?
Should I add a new action path="/signupMobile" here? - which means adding < html:form action="/signupMobile.do" method="post" > to my mobile jsp?
I hope I don't have to add a new Form bean as I would like to make use of the same Form.java meant for PC based version.