Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 repopulate field when a conversion error happens without using validation.xml

 
Aravind Ramanujam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using struts2. I need to repopulate a date field after a conversion error happens. I'm not using the validator xml for my validation instead using the validate method in my action class. How do i set repopulatefield to true in case of a conversion error?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to assign it back to the corresponding field. specify value in all the fields.

ex:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic