Ok, let me show what I'm trying to do, imagine that this is the HTML code rendered by struts:
<form name="elementForm" action="/getElements.do"> <input type="hidden" name="action" value="Create"> </form> Now, when I try to change the value of ..action="/getElements.do".. using javascript , document.elementForm.action = '/newGetElements.do', this refers to the field that has the Create value instead of the action element in the form tag (<form name="elementForm" action="/getElements.do">). Hope this helps, and thanks again -----Mensaje original----- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 04:45 p.m. Para: 'Struts Users Mailing List' Asunto: RE: people using action form field > Ok, Tim. But when I try the change the value of the action, > as you said, > document.getElementById("formname").action="newaction.do"; > it refers to the action "field" and not the action element in > the form tag. Suddenly I have the feeling that I don't know what you're talking about. What's the difference between the action "field" and the action "element"? Can you give a snippet of your JSP or HTML code? -- Tim Slattery [EMAIL PROTECTED] --------------------------------------------------------------------- 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]