`
guoqingcun
  • 浏览: 53454 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

java servlet and jsp cookbook 第一章 读后总结

 
阅读更多

1:为什么servlet抛出 ServletException,IOException

(1): if the servlet detected a security violation or some other request problem ,the servlet throw ServletException

(2):The servlet throws IOException because the response.getWriter( ) (as well as PrintWriter.close( )) method call can throw an IOException

2:如何立即编译jsp文件?(可解决服务缓存问题)

在jsp文件后加上jsp_precompile=true参数即可

oreilly源话:

You can avoid delays by precompiling the JSP. If you request the JSP with a jsp_precompile=true parameter, Tomcat converts the JSP, but does not send back a response. An example is http://localhost:8080/home/firstJ.jsp?jsp_precompile=true.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics