ramudu (1) [Avatar] Offline
#1
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
#2
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:

http://examples.oreilly.com/0596006519/

(Have a look of the storefront example.)

Have Fun!
Zolar