A basic question about spring configuration

View: New views
8 Messages — Rating Filter:   Alert me  

A basic question about spring configuration

by tomLee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a action:
LoginAction extends SimpleFormController

In configuration xml file:

<bean id="LoginAction" class="net.my.action.LoginAction">
                <property name="commandClass">
                        <value>net.my.action.LoginInfo</value>
                </property>
                <property name="service" ref="userSerivceTX"></property>
                <property name="validator">
                        <ref local="LoginValidator" />
                </property>
                <!-- <property name="formView">
                        <value>login</value>
                </property>
                <property name="fail_view">
                        <value>loginfail</value>
                </property>
                <property name="success_view">
                        <value>main</value>
                </property> -->
</bean>

There are two properties:validator and formView,which I can't find where they are defined.Wondering how can spring injection these two properties.

Thanks.

[SPAM] Vacation reply

by ykishor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Heya,how are you doing recently ? I would like to introduce you a very good company which i knew.Their website is  www.sale-buys.com  .They can offer you all kinds of electronical products which you need like laptops ,gps ,TV LCD,cell phones,ps3,MP3/4,motorcycles  etc........Please take some time to have a check ,there must be somethings you 'd like to purchase .
Their contact email:
salebuys@... .
Hope you have a good mood in shopping from their company !
Regards

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user

[SPAM] Vacation reply

by ykishor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Heya,how are you doing recently ? I would like to introduce you a very good company which i knew.Their website is  www.sale-buys.com  .They can offer you all kinds of electronical products which you need like laptops ,gps ,TV LCD,cell phones,ps3,MP3/4,motorcycles  etc........Please take some time to have a check ,there must be somethings you 'd like to purchase .
Their contact email:
salebuys@... .
Hope you have a good mood in shopping from their company !
Regards

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user

Re: A basic question about spring configuration

by Lachezar Dobrev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Parent classes of the LoginAction?

2009/10/29 tomLee <tomcatleee@...>:

>
> I have a action:
> LoginAction extends SimpleFormController
>
> In configuration xml file:
>
> <bean id="LoginAction" class="net.my.action.LoginAction">
>                <property name="commandClass">
>                        <value>net.my.action.LoginInfo</value>
>                </property>
>                <property name="service" ref="userSerivceTX"></property>
>                <property name="validator">
>                        <ref local="LoginValidator" />
>                </property>
>                <!-- <property name="formView">
>                        <value>login</value>
>                </property>
>                <property name="fail_view">
>                        <value>loginfail</value>
>                </property>
>                <property name="success_view">
>                        <value>main</value>
>                </property> -->
> </bean>
>
> There are two properties:validator and formView,which I can't find where
> they are defined.Wondering how can spring injection these two properties.
>
> Thanks.
>
> --
> View this message in context: http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26105459.html
> Sent from the springframework-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Springframework-user mailing list
> Springframework-user@...
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user

[SPAM] Vacation reply

by ykishor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Heya,how are you doing recently ? I would like to introduce you a very good company which i knew.Their website is  www.sale-buys.com  .They can offer you all kinds of electronical products which you need like laptops ,gps ,TV LCD,cell phones,ps3,MP3/4,motorcycles  etc........Please take some time to have a check ,there must be somethings you 'd like to purchase .
Their contact email:
salebuys@... .
Hope you have a good mood in shopping from their company !
Regards

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user

Re: A basic question about spring configuration

by tomLee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks,I got formView in the parent class SimpleFormController, and found

        private Validator[] validators;

in BaseCommandController,but it's not validator


Lachezar Dobrev wrote:
  Parent classes of the LoginAction?

2009/10/29 tomLee <tomcatleee@gmail.com>:
>
> I have a action:
> LoginAction extends SimpleFormController
>
> In configuration xml file:
>
> <bean id="LoginAction" class="net.my.action.LoginAction">
>                <property name="commandClass">
>                        <value>net.my.action.LoginInfo</value>
>                </property>
>                <property name="service" ref="userSerivceTX"></property>
>                <property name="validator">
>                        <ref local="LoginValidator" />
>                </property>
>                <!-- <property name="formView">
>                        <value>login</value>
>                </property>
>                <property name="fail_view">
>                        <value>loginfail</value>
>                </property>
>                <property name="success_view">
>                        <value>main</value>
>                </property> -->
> </bean>
>
> There are two properties:validator and formView,which I can't find where
> they are defined.Wondering how can spring injection these two properties.
>
> Thanks.
>
> --
> View this message in context: http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26105459.html
> Sent from the springframework-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Springframework-user mailing list
> Springframework-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/springframework-user

Re: A basic question about spring configuration

by Lachezar Dobrev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Well... You're looking in the wrong place.
  In this case Spring uses property style injections, meaning it uses
setXXX(...) methods to inject dependencies, and does not set the
fields directly.
  Hence setting a dependency to a validator is OK, since there is a
setValidator() method in the BaseCommandController.

2009/10/29 tomLee <tomcatleee@...>:

>
> Thanks,I got formView in the parent class SimpleFormController, and found
>
>        private Validator[] validators;
>
> in BaseCommandController,but it's not validator
>
>
>
> Lachezar Dobrev wrote:
>>
>>   Parent classes of the LoginAction?
>>
>> 2009/10/29 tomLee <tomcatleee@...>:
>>>
>>> I have a action:
>>> LoginAction extends SimpleFormController
>>>
>>> In configuration xml file:
>>>
>>> <bean id="LoginAction" class="net.my.action.LoginAction">
>>>                <property name="commandClass">
>>>                        <value>net.my.action.LoginInfo</value>
>>>                </property>
>>>                <property name="service" ref="userSerivceTX"></property>
>>>                <property name="validator">
>>>                        <ref local="LoginValidator" />
>>>                </property>
>>>                <!-- <property name="formView">
>>>                        <value>login</value>
>>>                </property>
>>>                <property name="fail_view">
>>>                        <value>loginfail</value>
>>>                </property>
>>>                <property name="success_view">
>>>                        <value>main</value>
>>>                </property> -->
>>> </bean>
>>>
>>> There are two properties:validator and formView,which I can't find where
>>> they are defined.Wondering how can spring injection these two properties.
>>>
>>> Thanks.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26105459.html
>>> Sent from the springframework-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Springframework-user mailing list
>>> Springframework-user@...
>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Springframework-user mailing list
>> Springframework-user@...
>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>
>>
>
> --
> View this message in context: http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26108075.html
> Sent from the springframework-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Springframework-user mailing list
> Springframework-user@...
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@...
https://lists.sourceforge.net/lists/listinfo/springframework-user

Re: A basic question about spring configuration

by tomLee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Got it,thank you very much.


Lachezar Dobrev wrote:
  Well... You're looking in the wrong place.
  In this case Spring uses property style injections, meaning it uses
setXXX(...) methods to inject dependencies, and does not set the
fields directly.
  Hence setting a dependency to a validator is OK, since there is a
setValidator() method in the BaseCommandController.

2009/10/29 tomLee <tomcatleee@gmail.com>:
>
> Thanks,I got formView in the parent class SimpleFormController, and found
>
>        private Validator[] validators;
>
> in BaseCommandController,but it's not validator
>
>
>
> Lachezar Dobrev wrote:
>>
>>   Parent classes of the LoginAction?
>>
>> 2009/10/29 tomLee <tomcatleee@gmail.com>:
>>>
>>> I have a action:
>>> LoginAction extends SimpleFormController
>>>
>>> In configuration xml file:
>>>
>>> <bean id="LoginAction" class="net.my.action.LoginAction">
>>>                <property name="commandClass">
>>>                        <value>net.my.action.LoginInfo</value>
>>>                </property>
>>>                <property name="service" ref="userSerivceTX"></property>
>>>                <property name="validator">
>>>                        <ref local="LoginValidator" />
>>>                </property>
>>>                <!-- <property name="formView">
>>>                        <value>login</value>
>>>                </property>
>>>                <property name="fail_view">
>>>                        <value>loginfail</value>
>>>                </property>
>>>                <property name="success_view">
>>>                        <value>main</value>
>>>                </property> -->
>>> </bean>
>>>
>>> There are two properties:validator and formView,which I can't find where
>>> they are defined.Wondering how can spring injection these two properties.
>>>
>>> Thanks.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26105459.html
>>> Sent from the springframework-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Springframework-user mailing list
>>> Springframework-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Springframework-user mailing list
>> Springframework-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/springframework-user
>>
>>
>
> --
> View this message in context: http://www.nabble.com/A-basic-question-about-spring-configuration-tp26105459p26108075.html
> Sent from the springframework-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Springframework-user mailing list
> Springframework-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Springframework-user mailing list
Springframework-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/springframework-user