File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Message resource not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Message resource not found" Watch "Message resource not found" New topic
Author

Message resource not found

Anil Mundra
Greenhorn

Joined: Nov 14, 2008
Posts: 21
hi
in my struts application i am using action mapping which code is:

package classes.com.virtualclass.struts;

import org.apache.struts.action.ActionMapping;
public class LoginActionMapping extends ActionMapping {

protected boolean loginrequired = false;

public LoginActionMapping() {
super();
}

public boolean isLoginrequired() {
return loginrequired;
}

public void setLoginrequired(boolean loginrequired) {
this.loginrequired = loginrequired;
}

}

***************the code in web.xml*****************************8
<init-param>
<param-name>mapping</param-name>
<param-value>classes.com.virtualclass.struts.LoginActionMapping</param-value>
</init-param>


***************Tho code in strutsconfig.xml*************************
<action path="/Upload" type="classes.com.virtualclass.struts.UploadAction" name="uploadForm" scope="request" validate="true" input="/Upload.jsp">
<set-property property="loginRequired" value="true" />
<forward name="success" path="/FacultyHome.jsp" />
<forward name="failure" path="/Upload.jsp" />
</action>
***********************************************************************
When i run this application then i get the error that MESSAGE RESOURCE NOT FOUND UNDER MESSAGE RESOURCE KEY

BUT if i remove this line from my strutsconfig.xml
<set-property property="loginRequired" value="true" />
then it is working.

I want that only after login a person can use upload action
Please help me.
 
jQuery in Action, 2nd edition
 
subject: Message resource not found
 
Similar Threads
error starting struts app in tomcat
Struts1.3 tiles problem
Tomcat Error after moving from struts 1.1 to struts 1.3.10
problem in struts-config.xml
Problem in implementing AvtionMapping