htmlのフォームに入力した値をcontroller経由でmodelで取得する方法を教えて下さい。
@RequestMapping(value="/hoge2/←フォームのあるhtml名")
public String text(@RequestParam("text←値のname") String text,@ModelAttribute("HogeForm←値をセットしたいmodel") HogeForm hogeForm) {
hogeForm.setText(text);
return "hoge2";