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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem when using html:errors " Watch "problem when using html:errors " New topic
Author

problem when using html:errors

Balaji
Greenhorn

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?
Thanks
Balaji
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem when using html:errors
 
Similar Threads
ActionError issue
How to check if a particular error is present ?
e.getMessage() not get printed on JSP using ActionError
struts validation
Multiple windows - clearing html:errors on parent window