• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message resource not found

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic