hi plz help me out

Reply

Join Date: Feb 2007
Posts: 18
Reputation: aruna_k_2006 is an unknown quantity at this point 
Solved Threads: 0
aruna_k_2006's Avatar
aruna_k_2006 aruna_k_2006 is offline Offline
Newbie Poster

hi plz help me out

 
0
  #1
May 7th, 2007
see my query is like this
(select studentname from student where studentid='+studentid+')

then i display in jsp like this
st_16 //studentid
.nikki //student names
.nani //student names
now second time when i add select student id st_17
now jsp i have display like
st_16
.nikki
.nani //first id's name + second id name's
st_17
.kutti
.abhi

if i add third id
i have to get all 3 id's with its corresponding name's



can anyone tell me how to write code
in while (rs.next())
Nikki
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 5
Reputation: eniacad is an unknown quantity at this point 
Solved Threads: 0
eniacad eniacad is offline Offline
Newbie Poster

Re: hi plz help me out

 
0
  #2
May 7th, 2007
//after you execute the query

while (rs.next()){
System.out.println(rs.getString("studentid"));
System.out.println(rs.getString("studentname"));
}



--------------------------------------------------------
I hope this is what you meant in your message.

if not just tell me and i will try to think of something else.

Cao
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 18
Reputation: aruna_k_2006 is an unknown quantity at this point 
Solved Threads: 0
aruna_k_2006's Avatar
aruna_k_2006 aruna_k_2006 is offline Offline
Newbie Poster

Re: hi plz help me out

 
0
  #3
May 7th, 2007
Originally Posted by eniacad View Post
//after you execute the query

while (rs.next()){
System.out.println(rs.getString("studentid"));
System.out.println(rs.getString("studentname"));
}



--------------------------------------------------------
I hope this is what you meant in your message.

if not just tell me and i will try to think of something else.

Cao




no ,
actually i am starting with jsp file i have a text box where i give student id like st_16 ok then it goes to servlet & bean & come to a next jsp file

next time in text box i give st_17 id now i have get
st_16
.nikki
.nani
st_17
.kutti
.chinnu
ok
Nikki
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the JSP Forum


Views: 1027 | Replies: 2
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC