struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Aggarwal" <n...@JAMMConsulting.com>
Subject RE: Multiple submit buttons on form not working
Date Thu, 01 Mar 2007 13:54:37 GMT
Dave:

I see what you are saying.  I changed my form to 
have a string field and now it captures the value
of the button that was pressed.

It does not match the doc but it works!

Thanks,
	Neil 

--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Thursday, March 01, 2007 7:46 AM
To: Struts Users Mailing List
Subject: Re: Multiple submit buttons on form not working

--- Neil Aggarwal <neil@JAMMConsulting.com> wrote:
> <s:form action="test/FormTest">
>   <s:property value="message"/>
>   <s:submit value="First Message" name="message1" />
> </s:form>
> 
> Any ideas why this is not working?

I would guess because it's trying to convert the
string value into a true/false boolean and failing?
(If I change the value to "true" for the msg1/msg2
buttons it works.)

So I guess I'm a little confused as well.

I'm also running my test on 2.0.4 since I haven't
updated m playground project in awhile.

d.



 
____________________________________________________________________________
________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message