File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes problem when using html:errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem when using html:errors " Watch "problem when using html:errors " New topic

problem when using html:errors


Joined: Oct 16, 2003
Posts: 5
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?
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
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
wood burning stoves
subject: problem when using html:errors
Similar Threads
struts validation
ActionError issue
How to check if a particular error is present ?
Multiple windows - clearing html:errors on parent window
e.getMessage() not get printed on JSP using ActionError