webwork/src/main/webwork/view/taglib IncludeTag.java,1.18,1.19
[email protected] Fri, 31 Oct 2003 19:47:45 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib
In directory sc8-pr-cvs1:/tmp/cvs-serv835/src/main/webwork/view/taglib
Modified Files:
IncludeTag.java
Log Message:
Log error for missing file
Index: IncludeTag.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/taglib/IncludeTag.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- IncludeTag.java 1 Nov 2003 03:45:45 -0000 1.18
+++ IncludeTag.java 1 Nov 2003 03:47:43 -0000 1.19
@@ -26,6 +26,7 @@
import java.util.*;
import org.apache.commons.logging.LogFactory;
+import org.apache.commons.logging.Log;
/**
* Include a servlets output (e.g. result of servlet, or a JSP page).
@@ -38,6 +39,8 @@
extends WebWorkBodyTagSupport
implements ParamTag.Parametric
{
+ private static final Log log = LogFactory.getLog(IncludeTag.class);
+
// Static --------------------------------------------------------
public static void include(String aResult, PageContext aContext)
throws ServletException, IOException
@@ -46,7 +49,11 @@
RequestDispatcher rd = aContext.getRequest().getRequestDispatcher(resourcePath);
if (rd == null)
- throw new ServletException("Not a valid resource path:" + resourcePath + ", make sure this file exists!");
+ {
+ String msg = "Not a valid resource path:" + resourcePath + ", make sure this file exists!";
+ log.error(msg);
+ throw new ServletException(msg);
+ }
PageResponse pageResponse = new PageResponse((HttpServletResponse) aContext.getResponse());
// Include the resource
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/