Hi,

The only way I've heard of to submit via a hyperlink would be some javascript call.  
You could try:

<html:link href="javascript: document.forms[0].submit();"><bean:message 
key="geral.alterar"/></html:link>

This would work only if the form in question was the first form on the page.

Since there are many different ways to get to the form you want to submit through the 
DOM, you may also find something like this also works:

<html:link  href="javascript: 
document.forms['the_name_of_my_form'].submit();"><bean:message 
key="geral.alterar"/></html:link>

But this would probably require you to change your <html:form> tag to have some form 
of a name attribute.

And to be exhaustively thourough, be sure you don't have an element (input button, 
text field, submit, etc.) in the form that has the name "submit".  It will make the 
javascript choke.

HTH,
Glenn


-----Original Message-----
From: cacau_braga [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:18 AM
To: user
Subject: Submit with a link


Hi All,

   I need a help. I have a page that contains many forms
   each form represents a record of database.
   I am need to submit that information when a user 
click on link, because i can´t use the buttons 
(<html:button), I want to use <html:link, but i don't 
know to use correctly, i want to send the information 
via POST how do i get this ?
   
My code (a part of):
<html:form action="manterUf.do?method=pesquisaUfPorPk">
       <tr>
        <td align="right" valign="middle" 
class="tdHeader3right">
      <html:hidden name="uf" property="codUf"/> <!-- 
THIS VALUE IS NOT GOING TO THE ACTION-->
      <html:hidden name="uf" property="operacao"/><!-- 
THIS VALUE IS NOT GOING TO THE ACTION-->
      <input type="hidden" name="tmp" 
value="<bean:write name="uf" property="codUf"/>"> 

      <!--  My Link-->       
      <html:link href="manterUf.do?
method=pesquisaUfPorPk"><bean:message 

key="geral.alterar"/></html:link>
         </td> 
   </tr>
        .....
 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


=======================================================
This email message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please contact the 
sender by reply email and destroy all copies of the original message. If you are the 
intended recipient, please be advised that the content of this message is subject to 
access, review and disclosure by the sender's Email System Administrator.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to