struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: Why does <html:submit> work differently than <html:link action="">?
Date Wed, 28 Jul 2004 22:18:25 GMT


> -----Original Message-----
> From: Andrew Close [mailto:aclose@gmail.com]
> Sent: Wednesday, July 28, 2004 3:14 PM
> To: Struts Users Mailing List
> Subject: Re: Why does <html:submit> work differently than <html:link
> action="">?
> 
> 
> > The form is being submitted to wherever the <form says, 
> regardless of method used to submit.  So, action and forward 
> are entirely inappropriate to use for the link in this case.  
> They have nothing to do with the what you want to do, which 
> is submit the form using javascript.  What was happening, in 
> your case, was the onclick was firing the submit and then you 
> were being sent to the link,  and things got confused.
> 
> ok, that was probably part of my problem.  i also think i was asking
> the wrong question (as well as blindly replying to ppls posts trying
> to help them understand what i was doing. :)
> 
> the one thing i'm still fuzzy with is why would the actionform only
> populate with one of the three hidden field values?  only the one that
> was being set via the javascript showed up on the next page.  did the
> action servlet drop the page and only take the javascript value that
> was handed to it?  of is there something else happening behind the
> scenes with action and forward that i just don't see yet?
> i'm just curious.  i'd like to understand better how everything ties
> together (and works).

With what you had... the struts stuff was either completely confused or out of the picture
entirely.. essentially you had a browser submitting a form and going to a link at the same
time.


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


Mime
View raw message