why struts does this? I m wandering why it doesnt treat the form name attribute as that of html form?
From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: RE: what should I gave to the type attribute of a html:form Date: Sun, 11 Apr 2004 08:40:17 -0700
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]
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]