Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

lost form data after validation errors return from actionform

 
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://%27https://coderanch.com/t/54199/Struts/dynamic-form-elements-struts%27]'https://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.
 
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.
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic