[s2]struts-2-spring-2-jpa-ajax tutorial

2007-09-27 Thread Eugen Stoianovici
I've started learning struts based on this tutorial which (from my limited experience) is a good starting point. There's on problem for me though. It gets frustrating implementing all my persistence related calls in a service class. Is there a way to instantiate my action classes with an

Re: [s2]struts-2-spring-2-jpa-ajax tutorial

2007-09-27 Thread Musachy Barroso
You can just inject your entity manager in your actions and do all the persistence stuff in there. JPA/Hibernate are not related or tied to struts in anyway. Just be advised that doing that will make your actions harder to test/maintain/extend and your code won't be reusable. regards musachy On