This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Accessing data from database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Accessing data from database" Watch "Accessing data from database" New topic
Author

Accessing data from database

Tushar Fender
Greenhorn

Joined: Sep 13, 2006
Posts: 3
i want access data from database in jsp file & i want print these data in table format.its urgent
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
What have you done so far? Have you heard of MVC? Have a servlet/controller call a class(the model) that will retrieve the data, then then the controller will forward it to the jsp to display it. Hope you get the idea.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This is a very common scenario in a Struts application. Since you posted this in the Struts forum, I'm assuming you want to do this within the Struts framework. If so, the best way to start is by working through one of the many good tutorials available. Here is a list of some good ones.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Accessing data from database
 
Similar Threads
How can I paint a chart in the jsp
using database at remote location
How to delete and update sql table through JTable
fow to forward to an action from jsp ?
regarding JTable