Re: Submit with a link
U can use html:link paramName=beanName paramId=u can pass here ur link property=valuewith ur link/ Michael McGrady [EMAIL PROTECTED] wrote:I am a notice in JavaScript. I have wondered in my brief perusal of JavaScript books how you tell which form is the referent of the formindex numbers? At 10:37 AM 5/5/2004, Henrique VIECILI wrote: you can use javascript to do this job... like this: ].submit()Enviar Formulário where is the index of the form you want to submit (starts in 0 - zero) Henrique Viecili - Original Message - From: cacau_braga To: user Sent: Wednesday, May 05, 2004 2:17 PM 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 (know to use correctly, i want to send the information via POST how do i get this ? My code (a part of): . __ 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
Re: Submit with a link
you can use javascript to do this job... like this: a href=javascript:document.forms[formIndex].submit() Enviar Formulário/a where formIndex is the index of the form you want to submit (starts in 0 - zero) Henrique Viecili - Original Message - From: cacau_braga [EMAIL PROTECTED] To: user [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 2:17 PM 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=pesquisaUfPorPkbean: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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Submit with a link
thanks... but my problem is with the atributtes of form, like codUf, operacao, that parameteres don´t go to the action when i use the html:link. Do you know, how do i submit that parameters ? Regards, Henrique, are u a brazilian ? - eu sou (i am.) __ 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]
Re: Submit with a link
Cacau, you must use a javascript function to submit your form. You can render a link like : a href=# onclick=javascript:forms[0].submit();return true/ or using html:link --- cacau_braga [EMAIL PROTECTED] escreveu: thanks... but my problem is with the atributtes of form, like codUf, operacao, that parameteres don´t go to the action when i use the html:link. Do you know, how do i submit that parameters ? Regards, Henrique, are u a brazilian ? - eu sou (i am.) __ 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] __ Yahoo! Messenger - Fale com seus amigos online. Instale agora! http://br.download.yahoo.com/messenger/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Submit with a link
Michael: I think forms stands for the list (array?) of all forms in that document. So the form which appears (physically) first on the document has index 0, the next one has 1, etc. Is this what you are asking..? Geeta -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:08 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Submit with a link I am a notice in JavaScript. I have wondered in my brief perusal of JavaScript books how you tell which form is the referent of the formindex numbers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Submit with a link
In struts 1.0, we do as follows to determine formName for situations like this: % String formName = ((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache .struts.action.Action.MAPPING_KEY)).getName(); % This attribute is set in processPopulate method of ActionServlet: //also pass the mapping through the request request.setAttribute(Action.MAPPING_KEY, mapping); And then: a href=javascript:document.forms['%=formName%'].submit();return false;Dale masa!!/a I don't know if in struts 1.1 it will work, but may be you can tell me. Cheers. Guillermo. -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Miércoles, 05 de Mayo de 2004 05:06 p.m. To: Struts Users Mailing List Subject: RE: Submit with a link Michael: I think forms stands for the list (array?) of all forms in that document. So the form which appears (physically) first on the document has index 0, the next one has 1, etc. Is this what you are asking..? Geeta -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:08 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Submit with a link I am a notice in JavaScript. I have wondered in my brief perusal of JavaScript books how you tell which form is the referent of the formindex numbers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]