Why can't you depend on it?  I've never had any problem getting the value of
a submit button from a submitted form in IE or any other browser.  The
submit button is just another form parameter, so it gets passed like any
other form field (ie. Textfield, password field, checkbox, etc.).

I am rather curious as to what has led you to believe that IE won't send the
value of a submit button to a web application.

The only thing I can think of, is if you use a <input type="button" .../>
tied to a javascript function, instead of <input type="submit" ... />.  Then
the name of the button wouldn't be submitted unless it was specifically
added it to the request inside the javascript function.  (I hope that made
sense.)


Brad Handy



-----Original Message-----
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 2:26 PM
To: 'Struts Users Mailing List'
Subject: [struts-user] RE: [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
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.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

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) 
>> cannot use the feature?
>>
>> </rant>
>> </flame>
>>
>> Gah.  Now to figure out an elegant way of fixing this....
>
>
> Maybe you could have JavaScript that detects which button was clicked 
> and changes the value of a hidden form field just before the 
> submission occurs?
>
> Kind of inelegant, but it might work.  It's only as reliable as 
> JavaScript, though.
>
> Good luck, that sucks if you have to re-do work.
>
>
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to