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 9/27/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > 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 EntityManager, so that i can > perform simple persistence related jobs directly in my actions? ... Is > this a "violation" of struts framework concepts? > > Thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]