You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Lynh Nguyen <ly...@Remulak.Net> on 2004/09/02 22:50:35 UTC
[PATCH] Network servlet display only message key
I'd like to suggest a patch addessing the message display on the
servlet. Currently the servlet displays only message key. The message
file for servlet messages is not picked up.
The patch will initialize the LocalizedResource object with the correct
servlet message file and will also remove unneeded reninitalize the
LocalizedResource object.
Index: java/drda/org/apache/derby/drda/NetServlet.java
===================================================================
--- java/drda/org/apache/derby/drda/NetServlet.java (revision 37226)
+++ java/drda/org/apache/derby/drda/NetServlet.java (working copy)
@@ -81,7 +81,7 @@
throws ServletException
{
- LocalizedResource langUtil = new LocalizedResource();
+ LocalizedResource langUtil = new
LocalizedResource(null,null,SER
VLET_PROP_MESSAGES);
String port = config.getInitParameter("portNumber");
if (port != null) {
@@ -896,7 +896,6 @@
locale = null;
if (acceptLanguage == null)
{
- localUtil.init();
return localUtil;
}
// Use a tokenizer ot separate acceptable languages
@@ -917,7 +916,6 @@
}
}
// nothing worked use defaults
- localUtil.init();
return localUtil;
}
Index: build.xml
===================================================================
I work for IBM and have worked for Derby for 3 months.