Yep... 

Here's the before() method from the ValidationInterceptor:

    protected void before(ActionInvocation invocation) throws Exception
{
        Action action = invocation.getAction();
        String context = invocation.getProxy().getActionName();

        if (log.isDebugEnabled()) {
            log.debug("Validating " +
invocation.getProxy().getNamespace() +
invocation.getProxy().getActionName() + ".");
        }

        ActionValidatorManager.validate(action, context);
    }

There's nothing special about the action or the context here... It could
be any bean and String context name.

Jason

> -----Original Message-----
> From: Torsten Juergeleit [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 02, 2003 4:38 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] [XWork] Howto use validation framework 
> with plain JavaBeans (no Actions)
> 
> 
> Is XWork's validation framework usable with
> non-actions (e.g. POJOs or JavaBeans) too?
> 
> If yes, where can I find sample code?
> 
> Cheers,
> Torsten
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> Does SourceForge.net help you be more productive?  Does it 
> help you create better code?  SHARE THE LOVE, and help us 
> help YOU!  Click Here: http://sourceforge.net/donate/ 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to