If you only use one form in a document you could use

        document.forms[0].fieldname 

for the first form and 

        document.forms[1].fieldname 

For the second.

The other issue is that there really isn't much of an issue to use the
SAME actual action form twice since it goes to the same place.  You
could just not close the form tag until you are done.

Edgar 





-----Original Message-----
From: ajTreece [mailto:aj.treece@;sun.com] 
Sent: Friday, November 08, 2002 4:09 PM
To: 'Struts Users Mailing List'
Subject: ActionForm used twice in document...


I have a website where the same ActionForm is used more than once in 
different <html:form ...> areas of the document. The problem is things 
are getting confused when I try and access form values (hidden or text) 
via Javascript. It complains that document.toolsMenuForm.contentid has 
no properties. In the old world I would just name the forms differently 
so they would be unique in the document.

Is it possible to use the same ActionForm more than once in a document? 
If so how?

Later, ajTreece




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to