User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,272 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,421 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 702 | Replies: 2
Reply
Join Date: Feb 2007
Posts: 18
Reputation: aruna_k_2006 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
aruna_k_2006's Avatar
aruna_k_2006 aruna_k_2006 is offline Offline
Newbie Poster

hi plz help me out

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Posts: 5
Reputation: eniacad is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
eniacad eniacad is offline Offline
Newbie Poster

Re: hi plz help me out

  #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  
Join Date: Feb 2007
Posts: 18
Reputation: aruna_k_2006 is an unknown quantity at this point 
Rep Power: 2
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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 6:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC