Try this.....
System.exit(0); That works for me ;) JM > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 4:34 PM > To: Tomcat Users List > Subject: Re: How to end a JSP > > > > Since nobody else answered, not sure but I would think a simple "return;" > as placed would do what you want. > troy > > > > > > Adam Pfeiffer > > <adamcpfeiffer@y To: > [EMAIL PROTECTED] > ahoo.com> cc: > > Subject: How to > end a JSP > 05/15/2002 01:11 > > PM > > Please respond > > to "Tomcat Users > > List" > > > > > > > > > > <%@page contentType="text/html"%> > <html> > <head><title>JSP Page</title></head> > <body> > > <%@ page import="java.io.*" %> > <%@ page import="java.util.*" %> > > <jsp:useBean id="pictureBrowserBean" scope="session" class > ="mada.trips.PictureBrowserBean" /> > > <% > //pictureBrowserBean.setBaseDir(getServletConfig().getServletContext > ().getRealPath("/")); > pictureBrowserBean.setBaseDir(""); > pictureBrowserBean.setAlbumDir("images/"); > try { > pictureBrowserBean.parseAlbums(); > } > catch (NullPointerException e) { > out.println(e.toString()); > return; // HERE > } > > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>