Let me ask you a question that I've never really received a good answer
to. Keep in mind that my knowledge of Java web programming is some S1,
and just starting with S2. I have never really looked at Spring.
I understand that S2 and Spring somehow work together. What I don't
understand is: why would I want to use both of them? If Spring is so
great, why don't I just buy a copy of Spring in Action and forget about
S2?
I guess I'm looking for answer to: what problem does Spring solve that
S2 does not? And vice-versa.
Musachy Barroso wrote:
Have you tried using Spring?. It plays nicely with Struts and hibernate,
plus there are some examples around I think.
musachy
On 5/11/07, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
Now I'm trying to configure Hibernate with S2, which many others have
done. I was trying to follow the example in WebWork in Action, but
things have obviously changed since then.
To be clear, the problem is to create a SessionFactory once in such a
way that all my actions can easily have access to it. The approach in
WWiA uses IoC. As far as I know, it would work in S2 but would need
many modifications because package names have changed. And perhaps
other mods would be needed?
I'm not sure if the best approach is:
a) Use the strategy in WWiA, but change the import statements to match
the current jars (and perhaps make other changes to match S2)
or
b) Something else.
Perhaps someone could point me to a complete solution?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]