I've been following the examples trying to get struts working w/ orion. When
I go to a url like http://localhost/cais/index.jsp, I expect the following
jsp test page to show up. But since it's mapped to the action servlet in the
web.xml file (below), and since the jsp page has no reference to a servlet,
how does it know where to find the resource properties file that's in the
web.xml?

--------------------- index.jsp ---------------------------------
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:html>
<head>
<title>
   <bean:message key="main.title" />
</title>
</head>

<body>
<html:errors />

This is a atest.
</body>
</html:html>

--------------------- web.xml ---------------------------------
The mapping in the ~/WEB-INF/web.xml file has the following entry:

<servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>
         org.apache.struts.action.ActionServlet
      </servlet-class>
      <init-param>
         <param-name>application</param-name>
         <param-value>com.neuroquest.cais.resources.cais</param-value>
      </init-param>
</servlet>
-----------------------------------------------------------------

I have a file called cais.properties within the com/neuroquest/cais/resource
directory.

I keep getting the following error:

500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE at
org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
Code) at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code) at
com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code) at
com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code) at
com.evermind.server.http.JSPServlet.service(JAX, Compiled Code) at
com.evermind.server.http.d3.sw(JAX, Compiled Code) at
com.evermind.server.http.d3.su(JAX, Compiled Code) at
com.evermind.server.http.ef.s1(JAX, Compiled Code) at
com.evermind.server.http.ef.do(JAX, Compiled Code) at
com.evermind.util.f.run(JAX, Compiled Code)

Any help much appreciated.

Reply via email to