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 |
What are construction struts?
What is the purpose of @requiredstringvalidator annotation?
What are the features of struts?
How long do struts last?
What is http forward?
What are the different kinds of actions in struts?
Why do the struts tags provide for so little formatting?
How do you know what to give for the "path " under in struts-config.xml ?
What is the purpose of @element?
What is the purpose of @after annotation?
What is meant by portals???
How many instances of servlet usually run in a struts application ?