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 struts data retrive query.............. important to me 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 "struts data retrive query.............. important to me" Watch "struts data retrive query.............. important to me" New topic
Author

struts data retrive query.............. important to me

sam dims
Greenhorn

Joined: Dec 01, 2008
Posts: 20
hi friends I am very new to struts , i can insert value in database mysql, but dont know how to retrieve data from database and show it in jsp
if you have code it will be very helpful to me or give me a steps to do it.... i am not using hibernate or spring


thanks & regards,
Sam
sam dims
Greenhorn

Joined: Dec 01, 2008
Posts: 20
anybody know this
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Struts is a MVC framework, not some database connectivity API.

Java SE offers you the JDBC API for database connectivity. Here is a JDBC tutorial: http://java.sun.com/docs/books/tutorial/jdbc/index.html To start, create a DAO class where in you takes and returns DTO's (javabeans) and do the JDBC tasks based on it, test it as an independent Java application. Once you got it to work, then just integrate it in your Struts application the usual way. There is a JDBC forum here devoted to questions related to JDBC.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: struts data retrive query.............. important to me
 
Similar Threads
struts database query
A sample code having json dojo and a servlet
JDBC in Spring Framework
how to retive data in struts from database
JDBC in Spring Framework