struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Close <acl...@gmail.com>
Subject Re: Re: Re: Why does <html:submit> work differently than <html:link action="">?
Date Wed, 28 Jul 2004 16:58:15 GMT
Hi Michael,

i agree, what i'm attempting is kindof goofy.
i'm trying to submit a form using a hyper-link instead of a submit
button.  i have three links on the page that perform similar but
different actions.  each link sets a value in a hidden field that
should be picked up by the actionform upon submission and then passed
to my action.
you are right, hyperlinks do not submit forms like submit buttons. :)
that's why i was attempting to submit the form using javascript.
if i was 'allowed' to use separate submit buttons i would do that.  or
even radio buttons and a single submit button.  but i was asked to use
hyperlinks...

i'll try to remember not to submit html without wrapping it in <pre>
tags.  sorry about that. :)  and thanks for your reply.

andy


On Wed, 28 Jul 2004 09:35:19 -0700, Michael McGrady
<mike@michaelmcgrady.com> wrote:
> Hi, Andrew:
> 
> If you are going to show HTML try the <pre> tag and change the HTML tags
> with "&lt;" and "&gt;" instead of  < and >.
> 
> What you are doing, Andrew, is not clear to me.  You have talked about
> using <html:link> instead of <html:submit> to submit a form.  I have no
> idea why you would ever think these two would work the same.  Ultimately,
> Struts tags must become standard HTML, of course.  The <link> HTML tag is
> simply not meant to be a substitute for the <input type='submit'> HTML
> tag.  You also talk about other things.  I guess I missed the thread of
> this conversation early, but the latter part seems somewhat goofy to me.  I
> don't mean it IS goofy, of course, but just that what you are saying sounds
> strange.  Why use <link> for a submission of a form?  I don't think <link>
> ever submits a form, does it?
> 
> Michael

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


Mime
View raw message