display corresponding values

Reply

Join Date: Jun 2009
Posts: 1
Reputation: gautam.ap is an unknown quantity at this point 
Solved Threads: 0
gautam.ap gautam.ap is offline Offline
Newbie Poster

display corresponding values

 
0
  #1
Jun 4th, 2009
Hi, everyone i want to display the corresponding values when i click on the primary key ... How to do this in jsp...???

Thanks in advance
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,639
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 472
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: display corresponding values

 
0
  #2
Jun 4th, 2009
Using request, response and SQL API.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 21
Reputation: dreamer14 is an unknown quantity at this point 
Solved Threads: 1
dreamer14 dreamer14 is offline Offline
Newbie Poster

Re: display corresponding values

 
0
  #3
Jun 4th, 2009
request method is one of the more basic one you sure u dont know that? or are you facing a different set of problem?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,639
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 472
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: display corresponding values

 
0
  #4
Jun 4th, 2009
Originally Posted by dreamer14 View Post
request method is one of the more basic one you sure u dont know that? or are you facing a different set of problem?
Why you are not coding? Please code and if you get some problems then ask for help.

  1. ...
  2. Class.forName("DB Driver");
  3. Connection cn=DriverManager.getConnection(url,username,password);
  4. Statement st=cn.createStatement();
  5. ResultSet rs=st.executeQuery("select * from tab where pkcol='" + request.getParameter("pk_text") + "'");
  6. if(rs.next()) { // Found
  7. ....
  8. out.println(rs.getString(1) + ...... );
  9. }
  10. else
  11. out.println("Not found");
  12. ...
Failure is not fatal, but failure to change might be. - John Wooden
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