RE: Problem with Formbean validate method forwarding to input pag e

2004-04-08 Thread Todd Bryant
] Sent: Wednesday, April 07, 2004 5:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Problem with Formbean validate method forwarding to input pag e Why don't you tell your action not to validate, and call validate yourself in your action. Seems like you will have all

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Todd Bryant
That is a good question. The problem is the way struts processes requests. The first thing struts does when receiving a request to an action is to fill in the formbean associated with the action. Then it runs the validate() method of the formbean. If the method returns a non-empty ActionErrors

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Todd Bryant
That is a good suggestion, and I had thought of that, but the problem is that a user would have to go from the error page back to the page they were on. This would make it prohibitively difficult to interact with this particular app (too many clicks). -Original Message- From: Paul Barry

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Todd Bryant
Interesting. I have never looked at the request processor before. The main question I have is - is the formbean populated BEFORE the request processor runs or after? If the form bean is populated before the method you mention, then the request process will still be circumvented by the formbean.

RE: Problem with Formbean validate method forwarding to input pag e

2004-04-07 Thread Ray Madigan
: Problem with Formbean validate method forwarding to input pag e The form bean is populated by the RequestProcessor, but you can put your logic to validate the session where ever you want. The easiest way to understand it is to just look at the source code