Hi Laurie -- I understand how validation works when extending ActionSupport - but my classes extend a POJO I created. Do you understand how validation works when registering simple POJO's as actions? I have XML files in the same folder that follow the naming standard "MyAction-validation.xml" and I can see the XML validations being performed because the errors are showing up in the server console. However, the exceptions never show up on the page via the <s:textfield .../>
My app works fine when I extend ActionSupport, but I do not want to tie my Actions to S2. What is the relationship between the canned input method and the validator support? Thanks, Scott On 3/5/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote: > I want to leverage the validation support via XML file and my actions are > POJOs that do not extend ActionSupport. How do I determine from within my > action if the validation failed? My POJO actions have specific method > names > that are being requested via wildcard mappings and therefore may not > contain > framework methods such as execute() or input(). Generally, if validation fails, control will never pass into your action, so you wont have an opportunity to 'determine from within my action if the validation failed.' You'll need to post relevant parts of your code and configuration, and describe what you think should be happening vs. what you see happening. With that, someone may be able to see what you're either doing wrong or expecting wrong. L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Scott [EMAIL PROTECTED]