Menu

#1 Absolute path support for language files

open
nobody
None
5
2004-06-21
2004-06-21
Anonymous
No

When set language file path to absolute value instead
of relative to servlet directory, I got the following
exception:

java.lang.NullPointerException
at com.cappuccinonet.strutscx.util.
StrutsCXXMLReader.getDocumentFromXML(StrutsCXXMLReader.
java:188)
at com.cappuccinonet.strutscx.util.
StrutsCXXMLReader.<init>(StrutsCXXMLReader.java:106)
at com.cappuccinonet.strutscx.util.StrutsCXPlugIn.
loadResourcePropertiesFiles(StrutsCXPlugIn.java:279)
at com.cappuccinonet.strutscx.util.StrutsCXPlugIn.
init(StrutsCXPlugIn.java:114)
at org.apache.struts.action.ActionServlet.
initModulePlugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.
init(ActionServlet.java:473)
at javax.servlet.GenericServlet.
init(GenericServlet.java:258)

Are there any plans for supporting absolute path for
language files?

Can I replace StrutsCXXMLReader with some my class that
will implement this functionality?

Sample config snippet:

<resources-properties>
<!-- you can switch the loading of these files
ON|OFF.
If ON, the will get loaded to the ServletContext
and serialized
- depending on the given Locale - into the
XML-Output-Document
-->
<on>ON</on>
<!-- provide a file for each <lang> -->
<en>D:\temp\mow\WEB-INF\lang\variables_en.xml</en>
<ru>D:\temp\mow\WEB-INF\lang\variables_en.xml</ru>
</resources-properties>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.