Link to home
Start Free TrialLog in
Avatar of lilyyan
lilyyan

asked on

jsp put.println() function

Hello, jsp gurus,

a simple question, why sometimes , out.println() doesn't  print anything ?

appreicte your reply.
Avatar of krishna kishore mellacheruvu venkata
krishna kishore mellacheruvu venkata
Flag of India image

means i didnt understand can u elaborate plz
ASKER CERTIFIED SOLUTION
Avatar of jessegivy
jessegivy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lilyyan
lilyyan

ASKER

Hi,jessegivy
problem solved. i'm doing a select query from a table. out.println(sqlRst.getString( 2 )); , if i use column number, it won't print anything. if i use filed name i.e. out.println(sqlRst.getString( field1));, it works.
Bizzar!

Is it because you only selected one field in your query???