Quick question...
I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'. What I'm
wondering is how to get the value of the submit button that was clicked from
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2 submit buttons
Really? I thought that was a fairly common thing to do?
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE
Ok... Does anyone have a good alternative then?
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't
it. Only Mozilla gives you the value, while IE doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2 submit buttons in the same form, so that I can do
'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...
I'm using 2
www.buffalo.edu/~kkamholz
-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value
A submit button is supposed to submit a parameter when selected.
i.e.
input type=submit name
In that case use the LookupDispatchAction
Brandon Goodin
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Alright, I think I basically understand how
28, 2003 1:39 PM
To: 'Struts Users Mailing List'
Subject: [struts-user] RE: Submit Value
Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check
To: Struts Users Mailing List
Subject: Re: Submit Value
A submit button is supposed to submit a parameter when selected.
i.e.
input type=submit name=submitButton value=Delete
should send /xxx.do?submitButton=Delete
This should correspond to a member of your ActionForm.
You should also look
thanks. I hadn't figured out yet that you could just provide the button value
without value=
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:48 PM
To: 'Struts Users Mailing List'
Subject: RE: [struts-user] RE: Submit Value
Denis Avdic wrote:
**$* damn MICROSOFT!
And me for not testing on IE.
Now I have to redesign half my webapp!
And why is this implemented if IE (90% of population out there) cannot
use the feature?
/rant
/flame
Gah. Now to figure out an elegant way of fixing this
Maybe you could have
[EMAIL PROTECTED] wrote:
In that case use the LookupDispatchAction
Brandon Goodin
-Original Message-
From: Kamholz, Keith (corp-staff) USX
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Alright, I
Actually, I just tried taking the value from request and it works.
If I do request.getParameter(submit); it returns value, but if i go
myForm.getSubmit(); it does not.
Weird. Only IE I can test right now is whatever comes with XP.
Anyone have any other experiences with this?
Denis
Erik
I apologize to the entire struts-dev-team.
Many things were said in a moment of panic.
Denis
Erik Price wrote:
Denis Avdic wrote:
**$* damn MICROSOFT!
And me for not testing on IE.
Now I have to redesign half my webapp!
And why is this implemented if IE (90% of population out there)
Subject: Re: [RANT/FLAME] Re: Submit Value
Actually, I just tried taking the value from request and it works.
If I do request.getParameter(submit); it returns value, but if i go
myForm.getSubmit(); it does not.
Weird. Only IE I can test right now is whatever comes with XP.
Anyone have any other
: [RANT/FLAME] Re: Submit Value
Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter(submit) returning value for
some browsers.
-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 2:23 PM
:[EMAIL PROTECTED]
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value
Actually, I just tried taking the value from request and it works.
If I do request.getParameter(submit); it returns value, but if i go
myForm.getSubmit(); it does not.
Weird
.
-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 2:39 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value
Why wouldn't there be a member variable? In the form?
html:submit property=submitButtonName value=WhateverValueIWantInHere
submit
: Submit Value
Why wouldn't there be a member variable? In the form?
html:submit property=submitButtonName value=WhateverValueIWantInHere
submit is there just because i put property=submit.
I could have called it property=yellowdinosaurwithpurplepolkadots and
it would still work (i think, never
: [RANT/FLAME] Re: Submit Value
**$* damn MICROSOFT!
And me for not testing on IE.
Now I have to redesign half my webapp!
And why is this implemented if IE (90% of population out there) cannot
use the feature?
/rant
/flame
Gah. Now to figure out an elegant way of fixing this
Phillip Qin
, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the
value, while IE doesn't.
-Original Message-
From: Kamholz, Keith (corp-staff) USX
[mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
All,
I'm working on updating my Struts app from 1.0.1 to 1.1RC1 and hit some
unexpected behavior. I wanted to know if this made sense.
I have a form with multiple html:submit tags in it, each having a
different value. The form bean associated with it has a submit property.
In Struts 1.0.1 I
Jordan wrote:
html:submit value=Update/
I would be interested in seeing the resulting HTML. What's the name
attribute of the input type=submit tag? If it's not name=submit, then
that's why your Form bean is not being populated. Try this:
html:submit property=submit value=Update/
--
Wendy
Updating to your suggestion of:
html:submit property=submit value=Update/
fixed it. Thanks!
- Jordan
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 7:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Retrieve a Submit Value in a Form
25 matches
Mail list logo