Short answer: No. You can't use <html:link/> and submit values entered in
input elements to your action without using Javascript.
As Wendy said, you can use a simple link and do this:
<a href="#" onClick="document.forms['myForm'].submit();"/>my link</a>
If you're not getting user input and simply passing data through using
<html:link/> then you can do something like this:
<jsp:useBean id="params" class="java.util.HashMap"/>
<c:set target="${params}" property="name" value="${name}"/>
<c:set target="${params}" property="age" value="${age}"/>
<html:link action="/MyAction" name="params">Link
Text</html:link>.
This will pass name and age to your action. But this is just appending to
the querystring. Save yourself the headache and use a button.
Zarar
----- Original Message -----
From: "Rafael Taboada" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, June 20, 2005 12:22 PM
Subject: Re: HTML:LINK
I noticed when I'm using <html:link action=""....
The form is not sending so my action can't retrieve the form.
Is it possible to pass the form values using html:link?
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]