This Java class is a controller that handles adding new product objects to a database. It contains a ProductDao object for data access and a Product object to hold the new product details. The execute method calls the addProduct method on ProductDao to save the new product and then returns SUCCESS. Getter and setter methods are included to inject dependencies and return the Product object.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views
Hibernate&struts 2
This Java class is a controller that handles adding new product objects to a database. It contains a ProductDao object for data access and a Product object to hold the new product details. The execute method calls the addProduct method on ProductDao to save the new product and then returns SUCCESS. Getter and setter methods are included to inject dependencies and return the Product object.