更新时间:2022-11-26 13:54:56
使用RequestDispatcher
的forward
方法.请参阅此处进行讨论: http://www.theserverside.com/discussions/thread.tss?thread_id= 2472 [^ ].
但是,请让JSP
负责输出.这就是JSP编程中的过程:让servlet处理所有业务逻辑和数据访问内容,并使用JSP
将整个内容呈现为HTML
.
问候,—MRB
Use theRequestDispatcher
''sforward
method. See here for a discussion: http://www.theserverside.com/discussions/thread.tss?thread_id=2472[^].
Please let theJSP
take care of the output though. That''s the procedure in JSP programming: Let the servlets handle all the business logic and data access stuff and theJSP
is used to render the whole thing toHTML
.
Regards,—MRB