You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "MaxGao (JIRA)" <ji...@apache.org> on 2008/03/12 07:55:07 UTC

[jira] Created: (WW-2546) Spring PropertiesFactoryBean lead to input validation error

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


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.


[jira] Commented: (WW-2546) Spring PropertiesFactoryBean lead to input validation error

Posted by "MaxGao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43688#action_43688 ] 

MaxGao commented on WW-2546:
----------------------------

why the configure in the spring cause all struts action validate the input field?


> 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
>
> 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.


[jira] Updated: (WW-2546) Spring PropertiesFactoryBean lead to input validation error

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2546:
--------------------------

    Fix Version/s: 2.1.3

> 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.


[jira] Commented: (WW-2546) Spring PropertiesFactoryBean lead to input validation error

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43678#action_43678 ] 

Don Brown commented on WW-2546:
-------------------------------

I'm not sure I understand the problem.  What should Struts do differently?

> 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
>
> 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.


[jira] Closed: (WW-2546) Spring PropertiesFactoryBean lead to input validation error

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ 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.