这一步之前的工作是对提交的request做处理,这一步(这句话)是表示:处理完了,分发到下一个JSP页面或者下一个Action继续处理。
会有forward()和redirect()两种情况,forward()是request中的参数继续传递,redirect()则是重新生成request了。

 

request.getRequestDispatcher("你要跳转的页面").forward(request, response)

 

得到请求的转发地址 用foward()方法转发

 

出处:https://zhidao.baidu.com/question/107200936.html

相关文章:

  • 2021-09-02
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2023-03-20
  • 2022-12-23
  • 2021-07-10
  • 2023-03-11
相关资源
相似解决方案