Hi,
I need to send a status code of 207 as part of my WebDav-servlet response.
But, Tomcat gives me a MissingResourceException because this status code is
not defined in org.apache.core.LocalStrings.properties.
How do I work around that? What is the standard way of adding custom status
codes? Is there a way I can tell Tomcat to use my ResourceBundle that has
this status code?
snap-shot of the call-stack:
java.util.MissingResourceException: Can't find resource for bundle
java.util.PropertyResourceBundle, key sc.207
at java.util.ResourceBundle.getObject(ResourceBundle.java:322)
at java.util.ResourceBundle.getString(ResourceBundle.java:298)
at
org.apache.tomcat.util.StringManager.getString(StringManager.java:136)
at org.apache.tomcat.core.ResponseImpl.getMessage(ResponseImpl.java:575)
at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd
apter.java:108)
at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl
etOutputStream.java:126)
at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl
etOutputStream.java:236)
at
org.apache.tomcat.core.BufferedServletOutputStream.flush(BufferedServletOutp
utStream.java:230)
Please mailto:[EMAIL PROTECTED] as I dont have subscription
to this list.
Any help is greatly appreciated.
thanks a lot,
Murthy