Hi I have an stupid beginner question how to get an String from Controller to the .jsp view?
in the controller I have something like:
@RequestMapping(value = "/users/add", method = RequestMethod.GET)
public String showAddUserForm(Model model) {
model.addAttribute("times1List", times1);
...
String myText = "data from external whatever...";
model.addAttribute("Group",myText);
...
return "users/userform";
my .jsp looks like
<div>
#
<c:out value="${Group}" />
#
${Group}
</div>
I can't see the string, only the "#" are visible, can't see what the problem is
do I need "ModelAndView"? It can't be so complicated to output just an variable