rmi, servlet and jdbc connection

hello to all...

if i have a method view details in my interface and in the implementation of the interface has a connection to a mysql database & is like:

...

public String viewDetails(int id) throws RemoteException

{

try

{

rs = st.executeQuery("Select * from Employees where id="+id);

return(rs.getString(1));

...

...

in my servlet, how do i display the "rs.getString(1)" ?

thx for the precious help!

[484 byte] By [victoriousa] at [2007-11-26 16:50:20]
# 1
Your method returns a String.The statement: return(rs.getString(1));returns that StringYou display the returned String.
cooper6a at 2007-7-8 23:17:58 > top of Java-index,Core,Core APIs...