Dear all,

I am having problems implementing the suggestion of struts' suggestion
of "how to populate a page when validation fails". My idea was to have a
s:action in the jsp that will be the input result of the failing
validation action. 
However, it seems that the interceptor stack of the 2nd action (the
s:action in the jsp) still thinks there is an error. I confirmed this by
debugging the DefaultWorkflowInterceptor, where
validationAwareAction.hasErrors() is true. It shouldn't be (at least not
according to the suggestion in
https://cwiki.apache.org/WW/how-do-we-repopulate-c...ols-when-validation-fails.html
  ); should it?

I've posted the question with a simple code snippet at
http://www.coderanch.com/t/535806/Struts/Populating-jsp-page-when-validation , 
so you can have a look at the code there.

My questions are: 
1) Why doesn't the method mapped to <s:action name="xxx"> get called
when the form fails, ie, why is its interceptor stack picking up an
error when it shouldn't?
2) How does one solve this, ie, how do I call the xxx action to populate
the rest of the page if I have a form with validation and an xxx action
bellow (the xxx action's purpose is to populate a table that should be
shown with the form, even when validation fail)


Your help is greatly appreciated,

Miguel Almeida

Reply via email to