Hi,
  I'm using Struts 2.1.8.1. I have some Actions that use validate() to check
the values in a form, and I'm using Preparable to load some data in case the
validation fails and it goes back to the original page. The issue is that
prepare is always invoked, so I load the data even if the validation is
succesful. I know this is a long known issue, but I was wondering if I setup
a PreResultListener in the prepare method that checks if the resultCode, and
if it is 'input', then it would load the data I need in the form. How that
sounds? Has anyone used this approach? Any flaws?

Thanks

JL

Reply via email to