Hi Dave
Hi all
Finally i got it working the spring-way, meaning, when also delegating the
instantiation of action classes to spring. The default way, meaning
letting struts2 creating the action instances still doesn't work and i
really don't understand why.
Thanks to everyone that help me
I suggest you to read this simple but useful tutorial to have an idea about
how much is simple to use Struts2+Spring+Hibernate together.
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
On Thu, Mar 13, 2008 at 10:32 PM, Frank Fischer
[EMAIL PROTECTED] wrote:
Now i don't
Hi all
first i'd like to thank all of you that have given me valuable feedback to
my question.
Following the answers from Dave and Jeromy i decided to go the hard way
with Spring and DI. After reading some manuals (thanks to GF, good reading)
i managed to load the Spring ContextLoaderListener
Am Donnerstag, 13. März 2008 22:32:34 schrieb Frank Fischer:
Now i don't understand (1) where to create/initialize these business logic
classes and (2) how to get access to them from the action classes.
Just build your business logic without thinking about s2 too much. From your
action classes
to initialize business service objects?
Hi all
first i'd like to thank all of you that have given me valuable feedback
to
my question.
Following the answers from Dave and Jeromy i decided to go the hard
way
with Spring and DI. After reading some manuals (thanks to GF, good
reading)
i managed
+0100
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: RE: How to initialize business service objects?
Hi all
first i'd like to thank all of you that have given me valuable feedback to
my question.
Following the answers from Dave and Jeromy i decided to go the hard
Frank,
AFAIU, you want your Business Service Object to be injected in your Struts2
actions. To achieve that, I have done this:
- Using Spring ObjectFactory.
- Declare Business Service Object (BSO) in Spring's
applicationContext.xml(you've already done that)
- Define action that has setter method
--- Randy Burgess [EMAIL PROTECTED] wrote:
You also need to setup your action in the application context so that
Spring knows where to inject the business object.
You *can* do it that way, but the default setup doesn't require it. It
depends on how you're wiring, whether or not your
Hi Michael
Thanks for your answer.
1) You have included the struts2-spring-pliugin.jar in your classpath
Yes, it put it under WEB-INF/lib/ so it's packaged to the war file and
should be available to tomcat it think. I also can't see any error or
warning messages while deploying the
--- Frank Fischer [EMAIL PROTECTED] wrote:
beans default-autowire=autodetect
Off the top of my head I don't recall what autodetect means.
Did you try leaving out the default-autowire attribute or switching it to
the default (name or something like that; I don't recall) and seeing if
that works?
]
Sent: Monday, March 17, 2008 1:35 PM
To: 'Struts Users Mailing List'
Subject: RE: How to initialize business service objects?
Hi Michael
Thanks for your answer.
1) You have included the struts2-spring-pliugin.jar in your classpath
Yes, it put it under WEB-INF/lib/ so it's packaged to the war
Hi all
i'm just starting with struts2 (even with struts at all). Of course i first
read some how-to-starts. But there is one thing i don't understand.
I'm trying to create a simple little chat app. I have two action classes,
one for the normal chat user, one for the moderators. Both classes
Applications Developer
Nuvox Communications
From: Frank Fischer [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Thu, 13 Mar 2008 22:32:34 +0100
To: user@struts.apache.org
Subject: How to initialize business service objects?
Hi all
i'm just starting
to get on
track again?
Thanks for your help
Frank
-Original Message-
From: Randy Burgess [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 11:02 PM
To: Struts Users Mailing List
Subject: Re: How to initialize business service objects?
For a POJO you can use dependency
--- Frank Fischer [EMAIL PROTECTED] wrote:
I just read a bit regarding Spring. As far as i understand its focus is on
J2EE appllications. I guess for what i want to do in a first step (my
simple chat app) it would be overkill to use Spring. Do i get that right?
Not really.
IMO Spring is a
Hi Frank,
Have a read of Martin Fowler's article on deciding which option best
suits you:
http://martinfowler.com/articles/injection.html
As Dave described you have many possibilities, but the common techniques
are (not in order of preference):
a. Use a ServletContextListener to to setup
16 matches
Mail list logo