Subject: Multiple resources - how to configure From: "Uli" <[EMAIL PROTECTED]> === Hi,
I want to use multiple resource files in my web application but cannot find a way how to configure this. I can configure an "application" resource bundle in web.xml using an init-param to the action servlet but that's not what I want to do. I want to create a resource file for a couple of JSPs, each JSP has its own resource file. In the JSP, I want to print error messages like <html:errors bundle="xxxResources" property="whatever"/>> This should load the ResourceBundle "xxxResources" but I get the following exception trace: javax.servlet.jsp.JspException: Cannot find message resources under key xxxResources at org.apache.struts.util.RequestUtils.present(RequestUtils.java:803) at org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:229) at _register__jsp._jspService(_register__jsp.java:63) at com.caucho.jsp.JavaPage.service(Unknown Source) at com.caucho.jsp.Page.subservice(Unknown Source) at com.caucho.server.http.FilterChainPage.doFilter(Unknown Source) at com.caucho.server.http.Invocation.service(Unknown Source) at com.caucho.server.http.CacheInvocation.service(Unknown Source) at com.caucho.server.http.QRequestDispatcher.forward(Unknown Source) at com.caucho.server.http.QRequestDispatcher.forward(Unknown Source) at com.caucho.server.http.QRequestDispatcher.forward(Unknown Source) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(Unknown Source) at com.caucho.server.http.Invocation.service(Unknown Source) at com.caucho.server.http.CacheInvocation.service(Unknown Source) at com.caucho.server.http.ServletServer.serviceTop(Unknown Source) at com.caucho.server.http.HttpRequest.handleRequest(Unknown Source) at com.caucho.server.http.HttpRequest.handleConnection(Unknown Source) at com.caucho.server.TcpConnection.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) I found a hint that the servlet context init params should be used to configure additional resource bundles, but I cant get it to work. Any comments appreciated. Ulrich -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>