Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lost form data after validation errors return from actionform

 
giridhar jaligama
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I implemented a Struts form. It contains dyanmic form elements as explain in one of this forum [url=http://%27http://www.coderanch.com/t/54199/Struts/dynamic-form-elements-struts%27]'http://www.coderanch.com/t/54199/Struts/dynamic-form-elements-struts'[/url]

I used innerHTML to add rows, everything is working fine. I am able to extract dyanmic form elements in my action class. but the problem is when there is a validation error occurs in the ActionForm and returns errors, then my form lost the fields I created previously, also the data entered in the filed.

do know why this happing.. do you faced any such issues. How to over come this problem..

Thanks in advance.
 
Tom Rispoli
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might help to see your form, jsp, and the html generated when you add a row.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic