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

Lukasz Lenart updated WW-3834:
------------------------------

      Description: 
I have my struts.xml as follows 

{code:xml}
<struts>
    <constant name="struts.devMode" value="true"/>
    <constant name="struts.oval.validateJPAAnnotations" value="true" />
    
    <package name="xxx" namespace="/xxx" extends="oval-default" >
        
        <default-action-ref name="allModels" />

        <action name="allModels" class="com.bfs.action.ModelAction" 
method="findAll">
            <result name="success">/model/models.jsp</result>
        </action>

        <action name="SetUpModel" method="setUpModel"  
class="com.bfs.action.ModelAction">
            <result name="success">/model/newmodel.jsp</result>
        </action>

        <action name="viewModel" method="findByModelid" 
class="com.bfs.action.ModelAction" >
            <result name="success" >/model/viewmodel.jsp</result>
        </action>

        <action name="*Model" class="com.bfs.action.ModelAction" method="{1}">
            <interceptor-ref name="ovalValidationStack"/>
            <result name="input">/model/newmodel.jsp</result>
            <result type="redirectAction" name="success">allModels</result>
        </action>


    </package>

</struts>
{code}

  was:
I have my struts.xml as follows 
-------------------------------------------------
<struts>
    <constant name="struts.devMode" value="true"/>
    <constant name="struts.oval.validateJPAAnnotations" value="true" />
    
    <package name="xxx" namespace="/xxx" extends="oval-default" >
        
        <default-action-ref name="allModels" />

        <action name="allModels" class="com.bfs.action.ModelAction" 
method="findAll">
            <result name="success">/model/models.jsp</result>
        </action>

        <action name="SetUpModel" method="setUpModel"  
class="com.bfs.action.ModelAction">
            <result name="success">/model/newmodel.jsp</result>
        </action>

        <action name="viewModel" method="findByModelid" 
class="com.bfs.action.ModelAction" >
            <result name="success" >/model/viewmodel.jsp</result>
        </action>

        <action name="*Model" class="com.bfs.action.ModelAction" method="{1}">
            <interceptor-ref name="ovalValidationStack"/>
            <result name="input">/model/newmodel.jsp</result>
            <result type="redirectAction" name="success">allModels</result>
        </action>


    </package>

</struts>

--------------------------------------------------------------------


    Fix Version/s: 2.3.5
    
> struts.oval.validateJPAAnnotations is never set after the constant is set to 
> true in struts.xml
> -----------------------------------------------------------------------------------------------
>
>                 Key: WW-3834
>                 URL: https://issues.apache.org/jira/browse/WW-3834
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - CDI, Plugin - OVal
>    Affects Versions: 2.3.4
>         Environment: Ubuntu 12.0, Glassfish, mysql 5.0
>            Reporter: Lukman
>             Fix For: 2.3.5
>
>         Attachments: strutscdi.zip
>
>
> I have my struts.xml as follows 
> {code:xml}
> <struts>
>     <constant name="struts.devMode" value="true"/>
>     <constant name="struts.oval.validateJPAAnnotations" value="true" />
>     
>     <package name="xxx" namespace="/xxx" extends="oval-default" >
>         
>         <default-action-ref name="allModels" />
>         <action name="allModels" class="com.bfs.action.ModelAction" 
> method="findAll">
>             <result name="success">/model/models.jsp</result>
>         </action>
>         <action name="SetUpModel" method="setUpModel"  
> class="com.bfs.action.ModelAction">
>             <result name="success">/model/newmodel.jsp</result>
>         </action>
>         <action name="viewModel" method="findByModelid" 
> class="com.bfs.action.ModelAction" >
>             <result name="success" >/model/viewmodel.jsp</result>
>         </action>
>         <action name="*Model" class="com.bfs.action.ModelAction" method="{1}">
>             <interceptor-ref name="ovalValidationStack"/>
>             <result name="input">/model/newmodel.jsp</result>
>             <result type="redirectAction" name="success">allModels</result>
>         </action>
>     </package>
> </struts>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to