File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Can't display result

City Guy
Greenhorn

Joined: Oct 15, 2001
Posts: 2
if (rs != null){
while(rs.next()){
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: 1180
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");
Cheers,
Dan

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 http://www.javaranch.com/name.jsp
please note fictious names donot qualify....
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't display result