This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Cannot find message resources under key org.apache..) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find message resources under key org.apache..)" Watch "Cannot find message resources under key org.apache..)" New topic
Author

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

Subhradip Podder
Ranch Hand

Joined: Aug 27, 2007
Posts: 36
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

Joined: Nov 14, 2008
Posts: 21
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..........
 
Have you checked out Aspose?
 
subject: Cannot find message resources under key org.apache..)
 
It's not a secret anymore!