cziegeler 01/11/23 06:41:22 Modified: src/org/apache/cocoon/servlet CocoonServlet.java Log: Changed setStatus to sendError() Revision Changes Path 1.54 +4 -4 xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java Index: CocoonServlet.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- CocoonServlet.java 2001/11/21 22:15:16 1.53 +++ CocoonServlet.java 2001/11/23 14:41:22 1.54 @@ -62,7 +62,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a> * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> * @author <a href="mailto:[EMAIL PROTECTED]">Leo Sutic</a> - * @version CVS $Revision: 1.53 $ $Date: 2001/11/21 22:15:16 $ + * @version CVS $Revision: 1.54 $ $Date: 2001/11/23 14:41:22 $ */ public class CocoonServlet extends HttpServlet { @@ -651,7 +651,7 @@ log.debug("Trying to load class: " + fqcn); } ClassUtils.loadClass(fqcn).newInstance(); - } catch (Exception e) { + } catch (Exception e) { if (log.isWarnEnabled()) { log.warn("Could not force-load class: " + fqcn, e); } @@ -793,7 +793,7 @@ contentType = env.getContentType(); } else { // means SC_NOT_FOUND - res.setStatus(res.SC_NOT_FOUND); + res.sendError(res.SC_NOT_FOUND); Notification n = new Notification(this); n.setType("resource-not-found"); @@ -814,7 +814,7 @@ log.warn("The resource was not found", rse); } - res.setStatus(res.SC_NOT_FOUND); + res.sendError(res.SC_NOT_FOUND); Notification n = new Notification(this); n.setType("resource-not-found"); n.setTitle("Resource not found");
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]