struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Close <>
Subject Re: Re: Re: Why does <html:submit> work differently than <html:link action="">?
Date Wed, 28 Jul 2004 16:46:28 GMT
Hi Wendy,

yes my submit button is named submit.  but when i tested using it i
wasn't using javascript. ;)
only the links are using javascript to set one hidden field on the
form.  i hard coded that value with the submit button.  in all cases
the hardcoded value or the value set via javascript is picked up by my
action form.  using the submit button the other two hidden fields are
picked up as well.  however, when using the links the other two hidden
fields are not picked up.
i haven't seen anything in the request or session variables regarding
those fields either.  i was printing them out inside my action which
would get the request before the jsp.  so that should work the same.


On Wed, 28 Jul 2004 09:18:16 -0700, Wendy Smoak <> wrote:
> From: "Andrew Close" <>
> > 2) Wendy gave me a
> > slightly different approach to try by calling the function and setting
> > the values of the hidden fields and then submitting.  however, two of
> > the hidden fields are set upon arrival to the page by my action form.
> > but they are not being picked up when i leave.
> > all of this works flawlessly when using a submit button. :)
> [Sorry, I didn't recognize this as the same issue from yesterday.]
> That doesn't make sense... either the element is on the form, or it's not.
> It shouldn't matter if the form gets submitted with a button or
> document.forms[0].submit().  Do you have a 'debug.jsp' that you can include
> at the bottom of all of your pages to dump the request/session
> attributes/parameters?
> And... that submit button of yours... its name isn't by any chance "submit"
> is it?  If so, JavaScript might get confused between 'submit' the form
> element and 'submit()' the function.  Try changing it to 'userAction' or
> something else, or just comment it out for now.
> --
> Wendy Smoak
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message