A link in HTML does not submit a form. Only submit inputs (buttons) an images input
does.
You can use javascript to do it (as you did), but then it overrides the href set on
the link (/myAction.do) and its
parameters.
Nico.
> I have a form with a htlm:link
>
> paramName="address" onclick="do
(html:select).
On the Onchange method we should update fields on the form.
Sandra
-Original Message-
From: Axel Stahlhut [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 16:05
To: Struts Users Mailing List
Subject: Re: Html:link and save form
Hi Sandra,
a link never submits data of the surrounding
Hi Sandra,
a link never submits data of the surrounding form. If you do it the way
you did, this should work, but if the user has javascript disabled,
nothing is submitted. You have got to check at least for errors from
that. But the user will never know or understand, ehat is happening. You
s
Sandra,
I'm not exactly clear on your question. Looks like you are trying to
submit a form by clicking of a link, invoking myAction.do to do something
with the form data. This should be workable. Are things not happening as
you expect after the form submits? Does changing the paramScope to
're
4 matches
Mail list logo