Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you show the errors that you're getting?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic