hi all
i am a beginner and have never worked on the framework before . while going through the book "beginning apache
struts: novice to professional" i encountered the following section on formbean's validate method
public ActionErrors validate(
ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if (firstName==null
|| firstName.trim().equals(“”)){
errors.add(“firstName”,
new ActionError(
“userRegistration.firstName.problem”));
}
...
return errors;
}
Notice that when you construct an ActionError object, you must pass it a key into the resource bundle (“userRegistration.firstName”). Thus, we need to add a value to this key in the Resource bundle.
Please open the file C:\strutsTutorial\WEB-INF\src\java\resources\application.properties. Add a key value pair as follows:
userRegistration.firstName.problem=The first name was blank
i am using myeclipse 6 and hence the directory sturcture is different so where shall i find the resource bundle? and in which file should i make the key value pair entry