0

最初のコントローラーは、jsp からバインドすることにより、クラス TestClass からオブジェクトを取得します

protected ModelAndView onSubmit(HttpServletRequest request,
        HttpServletResponse response,
        BindException errors, TestClass test)
        throws Exception {


    ModelAndView mv = new ModelAndView("page.jsp", "modelObject", test);

    return mv;
}

オブジェクトのみを取得して他のjspページに戻す2番目のものに処理しています

protected Test showForm(HttpServletRequest request,
        HttpServletResponse response,
        BindException errors, TestClass test)
        throws Exception {

    return test;
}

この問題の別の解決策またはより良い方法を教えてください。

4

0 に答える 0