I am doin g project , in that I created LoginAction, ActionBean which has setter and getter meothods, one login page,one success page. Also has Struts-congig.xml,web.xml which is default created using workbench eclipse IDE....
Ths success.jsp has table wich retrieves data from DB. Which running smoothly.Mean no exception for DB connection.
The ActionForm bean should have a property (e.g. productList) that represents the list of products. Your BusinessLogic class should retrieve the data from the database using JDBC, create the list of products, and place it in the ActionForm bean using the setProductList() method. Then, in your JSP, you should be able to display the productList using either JSTL <c:forEach> or the Struts <logic:iterate> tag.
If you don't understand how to access data using JDBC, I'd suggest googling "JDBC tutorial" to understand how JDBC works.