retrieve data from database into jsp(urgent)!!!

Reply

Join Date: Sep 2006
Posts: 1
Reputation: aditi19mitra is an unknown quantity at this point 
Solved Threads: 0
aditi19mitra aditi19mitra is offline Offline
Newbie Poster

retrieve data from database into jsp(urgent)!!!

 
0
  #1
Oct 14th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 6
Reputation: sandeep0708 is an unknown quantity at this point 
Solved Threads: 0
sandeep0708 sandeep0708 is offline Offline
Newbie Poster

Re: retrieve data from database into jsp(urgent)!!!

 
0
  #2
Jan 12th, 2007
Originally Posted by aditi19mitra View Post
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.

this is simple u have to make a onject of Resultset and then access the value retrieved by object.next();......might this will work
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 30
Reputation: Memento is an unknown quantity at this point 
Solved Threads: 0
Memento Memento is offline Offline
Light Poster

Re: retrieve data from database into jsp(urgent)!!!

 
0
  #3
Jan 14th, 2007
Originally Posted by aditi19mitra View Post
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.
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 1
Reputation: arunaponnuraj is an unknown quantity at this point 
Solved Threads: 0
arunaponnuraj arunaponnuraj is offline Offline
Newbie Poster

Re: retrieve data from database into jsp(urgent)!!!

 
0
  #4
Dec 28th, 2007
try with cusom tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC