ramudu (1) [Avatar] Offline
i am using hibetnate with struts.we will write the database connections in hibernate.cfg.xml.but to get the data where we will the code whether in action class or formbeans or anyother
Zolar (2) [Avatar] Offline
Re: please send answer to this question
Dear Ramudu,

You should code all the database connections or hibernate code within the formbeans. As Action class should only control the flow of your web application. For details, you can have a look of the following examples which provided by Oreilly:


(Have a look of the storefront example.)

Have Fun!