File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Can't display result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can Watch "Can New topic

Can't display result

City Guy

Joined: Oct 15, 2001
Posts: 2
if (rs != null){
state_name = rs.getString("state_name");
event_name = rs.getString("event_name");
event_desp = rs.getString("event_desp");
event_start = rs.getString("event_start");
state_plc = rs.getString("state_plc");
if (rs == null)
please try again
The reseult "please try again" cannot be display...
it only display a blank page..
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1183
Hi City Guy,
Are we speaking about Servlet code or JSP?
If it's a servlet, please replace -
please try againwith
out.println("please try again");

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Watch your braces... you missed one... (the second if statement is always false)
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"City Guy"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at
please note fictious names donot qualify....
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: Can't display result
It's not a secret anymore!