•
•
•
•
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
![]() |
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())
(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
•
•
Join Date: Mar 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
//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
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
•
•
•
•
//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
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- can someone plz help me with this? (Visual Basic 4 / 5 / 6)
- I NEED SUPPORT **"IMPORTANT"** PLZ HELP (Windows NT / 2000 / XP / 2003)
- Windows media player (Windows NT / 2000 / XP / 2003)
- Bridge.dll...Make it go away, Plz (Viruses, Spyware and other Nasties)
- can sum1 look @ dis plz (Viruses, Spyware and other Nasties)
- Hijackthis log file - plz help (Viruses, Spyware and other Nasties)
- IE not working...PLZ help :cry: (Web Browsers)
- PLZ help it's urgent! (Web Browsers)
- plz help ppl...... (Computer Science and Software Design)
Other Threads in the JSP Forum
- Previous Thread: operator ! cannot be applied to java.lang.String
- Next Thread: servlets - javax.servlets does not exist


Linear Mode