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
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
2 matches
Mail list logo