JSP的内置对象

1 request
2 out
3 response
4 session
5 page
6 pageContext
7 application
8 config
9 exception

response的printWriter对象在输出时总是提前于内置的out对象

如果需要正常显示可以在out后加上flush  清空缓存显示

请求重定向是客户器端行为而请求转发是服务器端行为

猜你喜欢

转载自blog.csdn.net/qq_17284055/article/details/81396078