R
RamRod
Assuming I have the following lines in a JSP
<td>
<html:submit property="AProperty" value="AValue"/>
<html:submit property="BProperty" value="BValue"/>
</td>
I now wish to discern, in my one Action class, whether the button
associated with AValue or the Button associated with BValue was
pressed. How is this accomplished?
I assumed that one of the 4 elements passed to the Action class would
reveal this value - most likely the -form- object or the -mapping-
object - this does not appear to be the case ...
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Any ideas ?
Thanks.
<td>
<html:submit property="AProperty" value="AValue"/>
<html:submit property="BProperty" value="BValue"/>
</td>
I now wish to discern, in my one Action class, whether the button
associated with AValue or the Button associated with BValue was
pressed. How is this accomplished?
I assumed that one of the 4 elements passed to the Action class would
reveal this value - most likely the -form- object or the -mapping-
object - this does not appear to be the case ...
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
Any ideas ?
Thanks.