If you don't want to make a property on the Command class, you can
always just look inside at the HttpServletRequest parameters (just
like you would before Spring/Struts/etc came along). Many methods of
the Controller interface have access to the Request.
Seth
----- Original Message -----
From: Stefan D Sookraj <ste...@us...>
Date: Wed, 28 Jul 2004 18:12:45 -0400
Subject: [Springframework-developer] Validation: multiple image buttons on forms
To: spr...@li...
Cc: spr...@li...
Hello,
I have this scenario:
<INPUT TYPE="image" SRC="/images/buttons/SUBMIT.png" VALUE="insert"
NAME="submit">
<INPUT TYPE="image" SRC="/images/buttons/DELETE.png" VALUE="delete"
NAME="submit">
<INPUT TYPE="image" SRC="/images/buttons/Cancel.png" VALUE="cancel"
NAME="submit">
and also tried this:
<INPUT TYPE="image" SRC="/images/buttons/BLUESUBMIT.png"
VALUE="insert" NAME="submit">
<INPUT TYPE="image" SRC="/images/buttons/DELETE.png" VALUE="delete"
NAME="delete">
<INPUT TYPE="image" SRC="/images/buttons/Cancel.png" VALUE="cancel"
NAME="cancel">
The problem I am getting is being able to determine which button was
pressed since the name property on these button do not bind to the
properties of the command object. How would I be able to determine
which button was pressed?
Additionally, I get <Data binding errors: 1> if this helps.
Using Spring 1.0.2
Thank you.
|