Struts and javascript. I just started to learn struts and I found that we cannot name a form. So i want to know how to give name to a struts form and how to access and retrive data from struts form ( <html:form> - - - -<html:form> )elements using the java script ?

WarnerJan Veldhuis

A form automatically gets its name from the form that is assign to the action. For example, if you have a login.do action, and that is connected to the LoginForm (configured in struts-config.xml), then the form will be named LoginForm. You can refor to your form using standard javascript: document.LoginForm.someField.value...

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact