Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem when using html:errors

 
Balaji
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am using <html:errors/> to display the erros in jsp page. I populate the errors into ActionError object in the Action Bean and displaying those errors in the jsp page. It is working for one application. I tried the same in other application and i am getting the following error:
"ApplicationDispatcher[/EApplyCommercial]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE"
I am not able to find where the problem actually occured.
Can anyone help me to solve this error?
Thanks
Balaji
 
poornima balagopal
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
just check whether you have given proper messages in the message resourse bundle(ApplicationResources.Properties) for the key you are giving in the jsps or in the actionform bean classes (Errors). and also check whether you had mapped the resource bundle into Web.xml
all the best
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic