Hi,
My html is built without using the spring taglib and now I'd like to bind the parameters of the form to a object in my controller.
Currently my form looks like this
The relevant part of my object isCode:<form> <input type="text" name="frAccUserMgmt.userName"/> <input type="password" name="frAccUserMgmt.userPwd"/> </form>
My controller isCode:Class FrAccUserMgmt { private String userName; private Strint userPwd; // getter and setter }
Adding a BindingResult parameter to the controller doesn't help. It just simply says that there are no binding errors. Neither does adding a @ModelAttribute help.Code:@RequestMapping("login") Public ModelAndView doLogin(FrAccUserMgmt frAccUserMgmt) { //code }
How do I go about binding it? I just get an empty object in my code.


Reply With Quote
