954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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:

aditi19mitra
Newbie Poster
1 post since Sep 2006
Reputation Points: 10
Solved Threads: 0
 
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

sandeep0708
Newbie Poster
6 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 
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

Memento
Light Poster
30 posts since Jan 2007
Reputation Points: 12
Solved Threads: 0
 

try with cusom tags

arunaponnuraj
Newbie Poster
1 post since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You