Author: niallp
Date: Sat Nov 5 17:27:13 2005
New Revision: 331055
URL: http://svn.apache.org/viewcvs?rev=331055&view=rev
Log:
modify RequestProcessor error messages
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionResources.properties
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionResources.properties
URL:
http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionResources.properties?rev=331055&r1=331054&r2=331055&view=diff
==============================================================================
---
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionResources.properties
(original)
+++
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionResources.properties
Sat Nov 5 17:27:13 2005
@@ -20,8 +20,8 @@
mappingType=Must specify one of "forward", "include" or "type" for path {0}
notAuthorized=User is not authorized to access action {0}
noInput=No input attribute for mapping path {0}
-processInvalid=Invalid path {0} was requested
-processPath=No process path found in request URI {0}
+processInvalid=Invalid path was requested
+processPath=No process path found in request URI
reloading=Reloading from configuration files
requestDispatcher=Cannot get request dispatcher for path {0}
sessionCreate=No user session could be created
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java
URL:
http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java?rev=331055&r1=331054&r2=331055&view=diff
==============================================================================
---
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java
(original)
+++
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/RequestProcessor.java
Sat Nov 5 17:27:13 2005
@@ -660,8 +660,8 @@
}
// No mapping can be found to process this request
- String msg = getInternal().getMessage("processInvalid", path);
- log.error(msg);
+ String msg = getInternal().getMessage("processInvalid");
+ log.error(msg + " " + path);
response.sendError(HttpServletResponse.SC_NOT_FOUND, msg);
return null;
@@ -745,10 +745,9 @@
}
String prefix = moduleConfig.getPrefix();
if (!path.startsWith(prefix)) {
- String msg =
- getInternal().getMessage("processPath",
request.getRequestURI());
+ String msg = getInternal().getMessage("processPath");
- log.error(msg);
+ log.error(msg + " " + request.getRequestURI());
response.sendError(HttpServletResponse.SC_BAD_REQUEST, msg);
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]