Mike,

If it is javascript, your only concern, you can use  
 document.forms[your form index] in your javascript code. 

If you are particular in using a form name, use your form bean name as
pointed by the form action in the struts-config file.
But make sure, you update your script if you plan to change your form bean
name. Personally I don't recommend this, since it might 
cause some maintenance problems down the line. 

Any other opinion on the above is welcome as I am looking for the best
practice in form access.  

Take a look at the following reference, for html:form
http://jakarta.apache.org/struts/userGuide/struts-html.html#form

Regards, 
Sanoj Antony 



-----Original Message-----
From: Mu Mike [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 2:56 PM
To: [EMAIL PROTECTED]
Subject: what should I gave to the type attribute of a html:form


I have a html:form like this

<html:form name="myform" type="org.apache.struts.taglib.html.FormTag", it 
throw class cast excetion, what is the correct value of type?

you know ,I need to use name to refer to this form in javascript ..

Thanks&Regards
Mike

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


---------------------------------------------------------------------
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]

Reply via email to