how to connect from struts to database through hibernet
and where u can modify the class



how to connect from struts to database through hibernet and where u can modify the class..

Answer / Anupam Sharma

To connect Struts with Hibernate, you'll need a Data Access Object (DAO) that uses Hibernate to interact with the database. First, create a DAO interface with the necessary methods for accessing the database. Next, implement this interface using Hibernate APIs in a concrete class. Finally, configure the Struts application to use the DAO and inject it into the Action classes where needed. You can modify the DAO class by changing the Hibernate configurations, mapping files (hbm.xml), or implementing additional methods as required.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

What are construction struts?

1 Answers  


What is the purpose of @requiredstringvalidator annotation?

1 Answers  


What are the features of struts?

1 Answers  


How long do struts last?

1 Answers  


What is http forward?

1 Answers  


What are the different kinds of actions in struts?

1 Answers  


Why do the struts tags provide for so little formatting?

1 Answers  


How do you know what to give for the "path " under in struts-config.xml ?

1 Answers  


What is the purpose of @element?

1 Answers  


What is the purpose of @after annotation?

1 Answers  


What is meant by portals???

9 Answers  


How many instances of servlet usually run in a struts application ?

1 Answers  


Categories