You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/06/21 02:47:05 UTC
[jira] Closed: (WW-2546) Spring PropertiesFactoryBean lead to input
validation error
[ https://issues.apache.org/struts/browse/WW-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso closed WW-2546.
-------------------------------
Resolution: Not A Problem
Struts will validate the field depending on validation rules, not related to spring in anyway, if validation fails, "input" will be returned. Try asking your question on the user list posting some more details.
> Spring PropertiesFactoryBean lead to input validation error
> -----------------------------------------------------------
>
> Key: WW-2546
> URL: https://issues.apache.org/struts/browse/WW-2546
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Spring
> Environment: struts 2.0.8 , xwork 2.0.3 , spring 2.0.1
> Reporter: MaxGao
> Fix For: 2.1.3
>
>
> when combine sturts2 with spring:
> <constant name="struts.objectFactory" value="spring" />
> and in spring config has some PropertiesFactoryBean define:
> <bean id="SomeProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
> <property name="location">
> <value>/WEB-INF/classes/some.properties</value>
> </property>
> </bean>
> then all struts actions will need field validation, for example
> some.properties:
> abc=abcde
> this time every struts action will go to validate the 'abcde' field ,and return a input result...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.