| | |
hi plz help me out
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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:
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
![]() |
Similar Threads
- can someone plz help me with this? (Visual Basic 4 / 5 / 6)
- I NEED SUPPORT **"IMPORTANT"** PLZ HELP (Windows NT / 2000 / XP)
- Windows media player (Windows NT / 2000 / XP)
- 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)
Other Threads in the JSP Forum
- Previous Thread: Java 2 Ascii Code
- Next Thread: servlets - javax.servlets does not exist
Views: 1027 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write





