struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanoj, Antony (IE10)" <Sanoj.Ant...@honeywell.com>
Subject RE: what should I gave to the type attribute of a html:form
Date Sun, 11 Apr 2004 15:40:17 GMT

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:mikemu_58@hotmail.com]
Sent: Sunday, April 11, 2004 2:56 PM
To: user@struts.apache.org
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message