File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble in displaying error message using html:errors tag

 
mahesh gopi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am a newbie as far as struts is concerned.
I am using weblogic 8.1 and struts 1.1 .

My problem is that when i am returning actionerrors from my validate method but the html:errors tag is not able to display my error mesages. It displays the key name with question marks which i believe happens when the struts is not able to pick the resource bundle.
The string displayed by JSp is like this -> ???en_US.xyz???

In the validate method of my action form class this is how i am setting the
action error where ae is an instance of ActionErrors

ae.add("abc",new ActionError("xyz"))

In the JSP i am using <html:errors /> to display all the error messages

In the Struts-config file i have configured the resource file by adding this
<message-resources parameter="ErrorMsg" null="false"/>

and i have placed ErrorMsg.properties inside web-inf/classes

please send in ur inputs on why this could be happening

regards and thanks
mahesh
 
M Murthy
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Have you defined


in your ErrMsg.properties file? Everything else seems to be right.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic