This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes validate method with resource file reference? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "validate method with resource file reference?" Watch "validate method with resource file reference?" New topic
Author

validate method with resource file reference?

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
I have following validate. I have a resource bundle i need to give since my application has more than 1 properties files. How to mention it here?

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
ActionErrors errors = new ActionErrors();

if(newId==null || newId.trim().equals("")){
errors.add("newId",new ActionError("userRegistration.newId.problem"));
//this is a key, put the value i.e. the message in properties file
}




return errors;
}
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: validate method with resource file reference?
 
Similar Threads
Using more than 1 properties file with Action Form
ActionError error
form validation error
validate to check errors on jsp
validation error messages