[ 
https://issues.apache.org/struts/browse/WW-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Holmes resolved WW-2076.
------------------------------

    Resolution: Not A Problem

I may not fully understand what you're trying to accomplish, but I believe I do 
and I believe that Struts 2 already supports the functionality you require.

Instead of creating a global set of validations for an action using the form 
ActionName-validation.xml, you can create validations for specific methods in 
your action using the form ActionName-MethodName-validation.xml.

If that does not solve your problem, please re-open this ticket and specify as 
many details as you can. A sample WAR file is always helpful and patches are 
strongly encouraged.

> validation.xml cause action not called
> --------------------------------------
>
>                 Key: WW-2076
>                 URL: https://issues.apache.org/struts/browse/WW-2076
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.8
>         Environment: Windows XP, Tomcat 6.0, Java 1.6.0, Eclipse 3.3 WTP
>            Reporter: Han Zhang
>
> When I want to pre-populate a form in a jsp, (like ShowCompany.jsp, with data 
> from database), if I have a ShowCompany-validation.xml, then Struts 2 will 
> not run the ShowCompany action at all. It jumps to the ShowCompany.jsp 
> directly and complains according to the validation.xml. 
> Dropping the ShowCompany-validation.xml, then the action gets called. So the 
> data are pulled from the database and pre-populated into the form nicely.  

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

Reply via email to