I am using a single jsp (registration.jsp) that can be used in one of three
different ways:
1. create a new registration, user clicks on hyperlink
<html:link page="/editRegistration.do?action=create">
2. edit existing registration details, user clicks on hyperlink
<html:link page="/editRegistration.do?action=edit">
3. user confirms a new registation or confirms update existing details
(i.e registration.jsp is used to display to the user the fields they are
about to commit to the database)
in this case, the user will click on a BUTTON, not a hyperlink:
<html:form "action="/editRegistration.do" value="confirm">
In my EditRegistrationAction class, I want to check the the value of the
'action' attribute:
String action = request.getParameter("action")
My problem is that I am not sure if the value="confirm" attribute/value pair
on the button will be detected by the request.getParameter("action") method.
Will I therefore need a separate variable to check for the button i.e.
String value = request.getParameter("value")
many thanks
yan
Kickstart e Solutions. - Intelligent Web Services
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]