html:errors is not working in struts to display error message

Hi Experts,

I am having a problem in displaying error message in jsp, I need to display error message in JSP using <html:errors/> please suggest me,

Code at ActionForm:

if(totaltenderAwdAmtSGD.compareTo(finLimitAmt) > 0)
ActionErrors actionErrors=new ActionErrors();
actionErrors.add(ActionErrors.GLOBAL_ERROR,new ActionError("error.tender.finAmt.chk.msg"));
Log.out.debug(" finLimitAmtfinLimitAmt 0000: "+actionErrors.isEmpty());

if (!actionErrors.isEmpty()) {
Log.out.debug(" finLimitAmtfinLimitAmt 1111: "+finLimitAmt);


Log.out.debug(" finLimitAmtfinLimitAmt 2222: "+finLimitAmt);
strForward = "awardConfirmItem";


Am getting all the prints,

entry at

error.tender.finAmt.chk.msg=<li>You may want to reduce the Total Awarded Amount as it exceeds selected Approving/ Verifyin Officer financial limit of approval.</li>

and at JSP

<td><html:errors bundle="webitt"/></td></tr>

webitt is the folder where is placed. I tried using and without using validate() method in ActionForm, where am returning actionErrors, Still am unable to get error message, please suggest me on this.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi yasoda,

bundle="webitt" does not mean that your be present in the folder you give.
It refers to the key attribute you give in struts-config.xml.

<message-resources key="webitt" parameter="" />

Make sure you have some arrangement like the above.
The above means that you have to put your properties file in com/foo/messages folder under classes.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.