Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you show the errors that you're getting?

 
satishbsk kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check html:form tag.. I am not sure this tag contain "name" attribute.

Rgds,
Satish
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic