I have a class called "HelloController" and it extends SimpleFormController.
I have the following method inside of HelloController.java:
protected Map referenceData(HttpServletRequest request) throws Exception
{
Map<
String,String> language = new dHashMap<String,String>();
language.put("Spanish", "Buenos Dias");
language.put("French", "Bonjour");
return language;
}
How would I create a
JSP file that would accept a language as its input and return a greeting in that language? For example, if the user enters "Spanish", then the user should see "Buenos Dias." If the user enters "French", then the user should a see "Bonjour".