How to convert String from input text to md5? I have no clue.
This is part of my .jsp
<tr>
<td><spring:message code="password" text="default text" /></td>
<td>:</td>
<td><input type="password" name="password" required></td>
and this is my controller
@RequestMapping(value="/admin/addUser.html", method=RequestMethod.POST)
public ModelAndView createUserAdmin(@ModelAttribute UserAdmin useradmin, ModelMap model)throws Exception
{
userService.save(useradmin);
model.addAttribute("successAdd", "true");
return listUserAdmin(model);
}
Thanks for any help :)