You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Volker Karlmeier (JIRA)" <ji...@apache.org> on 2008/04/24 12:52:05 UTC
[jira] Created: (WW-2614) validate() is not called when method
other than execute is executed
validate() is not called when method other than execute is executed
-------------------------------------------------------------------
Key: WW-2614
URL: https://issues.apache.org/struts/browse/WW-2614
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.9
Environment: Apache Tomcat 5.5, Java 1.6, TopLink
Reporter: Volker Karlmeier
i have an action class that implements multiple methods such as "execute" and "save".
When I enter method="save" in my struts.xml, validate is not called although my action class
is subclassed from ActionSupport and so implements Validatable/ValidationAware.
I think this is a bug as I expected validate() to be called before save() gets called by the framework.
This only happens when execute() is called.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2614) validate() is not called when method
other than execute is executed
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Brown updated WW-2614:
--------------------------
Fix Version/s: 2.1.3
> validate() is not called when method other than execute is executed
> -------------------------------------------------------------------
>
> Key: WW-2614
> URL: https://issues.apache.org/struts/browse/WW-2614
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.9
> Environment: Apache Tomcat 5.5, Java 1.6, TopLink
> Reporter: Volker Karlmeier
> Fix For: 2.1.3
>
>
> i have an action class that implements multiple methods such as "execute" and "save".
> When I enter method="save" in my struts.xml, validate is not called although my action class
> is subclassed from ActionSupport and so implements Validatable/ValidationAware.
> I think this is a bug as I expected validate() to be called before save() gets called by the framework.
> This only happens when execute() is called.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WW-2614) validate() is not called when method other
than execute is executed
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso closed WW-2614.
-------------------------------
Resolution: Not A Problem
this is by design, validate() is called only when the method is execute(), for any other X method validateX() will be called.
> validate() is not called when method other than execute is executed
> -------------------------------------------------------------------
>
> Key: WW-2614
> URL: https://issues.apache.org/struts/browse/WW-2614
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.9
> Environment: Apache Tomcat 5.5, Java 1.6, TopLink
> Reporter: Volker Karlmeier
> Fix For: 2.1.3
>
>
> i have an action class that implements multiple methods such as "execute" and "save".
> When I enter method="save" in my struts.xml, validate is not called although my action class
> is subclassed from ActionSupport and so implements Validatable/ValidationAware.
> I think this is a bug as I expected validate() to be called before save() gets called by the framework.
> This only happens when execute() is called.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.