This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I'm using the validator framework with struts, in order to validate the user data. And I wanted to get the error messages from the MessageResources_en.properties file. But instead it writes ???en_US.errors.required??? instead of fileds names
I don't think that there's a problem with my message resource file as the rest of the fields titles in the page are displayed properly from this property file
Here s my Form JSP <html:form method="post" action="vfcLogin" onsubmit="return validateVFCLoginForm(this);">
So i really don't know where this error is coming from. Any idea?
Another thing, how do I define whether do I want a popup msg to appear or just write the errors in the page? currently this code is generating a popup msg with this error msg ???en_US.errors.required???
Joined: Jun 19, 2005
Hey all, I found out what the problem is. It was in the validation.xml. All you have to do is to replace <arg key="error.pin.required"/> with <msg name="required" key="error.pin.required"/>
Didn't know the reason, perhaps it's a bug or something.
Any suggestions about how to specify whether I need it in popup msg or to be printed in the page?