Seth,
Thanks for the reply, but since this is need as part of my validator, is
there not a way to get a hold of the request in the validator?
BTW - I have a property on the command class, it is just not getting set
(bind?). It returns an empty string.
Wednesday, July 28, 2004 8:35 PM
To: spr...@li...
cc:
From: Seth Ladd <set...@gm...>
Subject: Re: [Springframework-developer] Validation: multiple image buttons
on forms
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.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|