struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Stanlick (JIRA)" <>
Subject [jira] Commented: (WW-1785) Validator fails on an action that does not extend ActionSupport
Date Sun, 04 Mar 2007 14:04:18 GMT


Scott Stanlick commented on WW-1785:

Hi Tom --

My class has an execute method, so this is not the issue.  I would rather
not extend ActionSupport and the docs suggest that "Action" classes can be
POJO's.  If the actions have an execute() method but DO NOT extend
ActionSupport, how does this alter the S2 request/response life cycle?
Obviously ActionSupport is more than just "support" if subtracting it from
the class hierarchy breaks the app.  Specifically, can I leverage the
validator feature without extending ActionSupport?



> Validator fails on an action that does not extend ActionSupport
> ---------------------------------------------------------------
>                 Key: WW-1785
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: Windows XP
>            Reporter: Scott Stanlick
>         Assigned To: Tom Schneider
>             Fix For: 2.0.7, 2.1.0
> I had an S2 app working great until this morning when I changed my custom BaseAction
class to no longer extend ActionSupport.  I am getting the following exception and quietly
being directed to an incorrect Result.  I am receiving the validator message in the server
> 09:46:53,416 ERROR Login:279 - Validation error for password: is required.
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.NoSuchMethodException: actions.Login.execute()
> 	at java.lang.Class.getMethod(
> 	at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message