wood burning stoves 2.0*
The moose likes Struts and the fly likes Strurs2 example to fetch the data from database and display it on a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strurs2 example to fetch the data from database and display it on a JSP page" Watch "Strurs2 example to fetch the data from database and display it on a JSP page" New topic
Author

Strurs2 example to fetch the data from database and display it on a JSP page

Mahabaleshwar Bhat
Greenhorn

Joined: Mar 23, 2011
Posts: 1
Hi,

I am very new to struts2. Can anyone please give me an exaple on how to fetch the data from the databse, how to store those values in an arralyist and display the results in JSP page. Please give me sample code.

Thanks in advance.

-Mahabalesh
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

in action

In JSP


for struts2 examples :http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-tutorial.html
struts2 tag : http://struts.apache.org/2.0.14/docs/tag-reference.html
 
Consider Paul's rocket mass heater.
 
subject: Strurs2 example to fetch the data from database and display it on a JSP page