This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes How can I set a form name in a jsp page using <html:form>  tag ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can I set a form name in a jsp page using <html:form>  tag ?" Watch "How can I set a form name in a jsp page using <html:form>  tag ?" New topic
Author

How can I set a form name in a jsp page using <html:form> tag ?

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
there is a jsp page, i have given its name also like : -



Iam also calling a javascript function to read the values of EIN by checked radio button like this : -


Iam not able to read the checked radio button value becoz i have used 'forms[0]' instead of actual name of the form.
When i had given the form it name like :-

and replaced the javascript code by its form name like : -



By doing this nothing is happening and it throws error too.
Do i need to create its form class and form bean as well and mapped in struts-config.xml
please tell me wats the reason of this error.
thankx

Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Could you show the errors that you're getting?

satishbsk kumar
Greenhorn

Joined: Jul 24, 2009
Posts: 15
Please check html:form tag.. I am not sure this tag contain "name" attribute.

Rgds,
Satish
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Please check html:form tag.. I am not sure this tag contain "name" attribute.


Check it here Struts Taglib

Doesn't look like there is "name" attribute
 
GeeCON Prague 2014
 
subject: How can I set a form name in a jsp page using <html:form> tag ?