Im not sure what im doing wrong, but the errors (ie mandatory fields are left blank) are not being diplayed once the form is being validated. Thank you for your time. <action input="/HtmlFile.jsp" name="FileForm" path="/HtmlFile" scope="session" type="ch12.HtmlFileAction" validate="true"> <forward name="default" path="/HtmlFile.jsp"/> </action> <html:html> <body > <html:errors/> <html:form action="HtmlFile.do" enctype="multipart/form-data">
1) Check that you have your message resources file (i.e. ApplicationResources.properties) specified in your struts config. 2) Check that the file is there, where you expect it to be. 3) Check that the specified message key is present in the file. 1 I can't help with. 2 Try adding the following to your ApplicationResources.properties file and restarting your app, then rerunning your test that should display errors... # html:errors tag configuration ------------------------------------------ errors.header=<ul> errors.prefix=<li> errors.suffix=</li> errors.footer=</ul> If your file is loaded properly, your messages will now be in a bulleted list. If you see (bullet) (bullet) Or something similar, your problem is likely with #3.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Let me tell you a story about a man named Jed. He made this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!