DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Oracle (http://www.daniweb.com/forums/forum129.html)
-   -   retrieve data from database into jsp(urgent)!!! (http://www.daniweb.com/forums/thread58034.html)

aditi19mitra Oct 14th, 2006 1:11 am
retrieve data from database into jsp(urgent)!!!
 
hi guys,
i'm doin a prjct in which i've used oracle9i @ backend n jsp @frontend.can u tell me how do i retrieve the data back from the database to the jsp.i've successfully inserted d values but i'm clueless as to how to get it back in the proper order.:sad:

sandeep0708 Jan 12th, 2007 7:26 am
Re: retrieve data from database into jsp(urgent)!!!
 
Quote:

Originally Posted by aditi19mitra (Post 263246)
hi guys,
i'm doin a prjct in which i've used oracle9i @ backend n jsp @frontend.can u tell me how do i retrieve the data back from the database to the jsp.i've successfully inserted d values but i'm clueless as to how to get it back in the proper order.:sad:




this is simple u have to make a onject of Resultset and then access the value retrieved by object.next();......might this will work

Memento Jan 14th, 2007 6:52 pm
Re: retrieve data from database into jsp(urgent)!!!
 
Quote:

Originally Posted by aditi19mitra (Post 263246)
hi guys,
i'm doin a prjct in which i've used oracle9i @ backend n jsp @frontend.can u tell me how do i retrieve the data back from the database to the jsp.i've successfully inserted d values but i'm clueless as to how to get it back in the proper order.:sad:



To get the results in the correct order you can add an ORDER BY clause to your query. DESC stands for descending which will start with the hightest values first.

SELECT t.col_1, t.col_2, t.date_col
FROM some_table t
WHERE t.col_1 = ‘something’
ORDER BY t.date_col DESC

arunaponnuraj Dec 28th, 2007 2:06 am
Re: retrieve data from database into jsp(urgent)!!!
 
try with cusom tags


All times are GMT -4. The time now is 2:42 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC