Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find message resources under key org.apache..)

 
Subhradip Podder
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have facing a problem to develop a code, that is -----
Cannot find message resources under key org.apache.struts.action.MESSAGE

Also i used struts 1.2 and my web.xml and struts-config.xml are following---

web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<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.iotl.struts.ApplicationResources</param-value>
</init-param>

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
.................


<struts-config>
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="url" value="jdbc racle:thin:@172.16.90.139:1531 ROD"/>
<set-property property="username" value="apps"/>
<set-property property="password" value="apps"/>
</data-source>
</data-sources>

<form-beans >
<form-bean name="loginForm"
type="com.iotl.struts.form.LoginForm" />

</form-beans>

<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
validate="true"
type="com.iotl.struts.action.LoginAction">
<forward name="success" path="/jsp/menu.jsp" />
<forward name="failure" path="/jsp/failure.jsp" />
</action>


</action-mappings>


Please Please help me.......
 
Anil Mundra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
You have to add the message resource path like............
<message-resources parameter="classes.com.virtualclass.struts.ApplicationResources" />

Where the path in " " is actual path of your resources file.
Cheers..........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic