Basic Struts question
From: RamRod (ramrod1460_at_hotmail.com)
Date: 01/30/04
- Next message: P.Hill: "Re: Convert from java.sql.Date to GregorianCalendar"
- Previous message: P.Hill: "Re: Convert from java.sql.Date to GregorianCalendar"
- Next in thread: Andreas Wollschlaeger: "Re: Basic Struts question"
- Reply: Andreas Wollschlaeger: "Re: Basic Struts question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jan 2004 15:09:18 -0800
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.
- Next message: P.Hill: "Re: Convert from java.sql.Date to GregorianCalendar"
- Previous message: P.Hill: "Re: Convert from java.sql.Date to GregorianCalendar"
- Next in thread: Andreas Wollschlaeger: "Re: Basic Struts question"
- Reply: Andreas Wollschlaeger: "Re: Basic Struts question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]