Best Practice 3 Do not create HttpSessions in JSPs by default
来源:互联网 发布:2016淘宝客 编辑:程序博客网 时间:2024/04/28 14:58
Best Practice 3 Do not create HttpSessions in JSPs by default
默认的JSP文件中会创建HttpSession对象。这主要是默认使用J2EE的标准以利于对后台默认对象的使用,这样就可以在JSP源码和标签中使用这些对象的时候不需要明确的声明。HttpSession对象使这些对象中的一个。如果你不要在JSP文件中使用HttpSession对象就可以在JSP文件中使用下面的指令来节省性能:
<%@ page session="false"%>
- Best Practice 3 Do not create HttpSessions in JSPs by default
- Best Practice 2 Release HttpSessions when finished
- Best Practice 2 Release HttpSessions when finished
- Best Practice 5 Do not use SingleThreadModel
- Best Practice 5 Do not use SingleThreadModel
- Best Practice 1 Do not store large object graphs in HttpSession
- absolute paths not recommended in jsps
- Best Practice in SQL
- Best practice in PL/SQL
- Apostrophe not preceded by \ (in CREATE TABLE tb_cammonitor_configs (
- Apostrophe not preceded by \ (in CREATE TABLE tb_cammonitor_configs
- error: Apostrophe not preceded by \ (in CREATE TABLE tb_cammonitor_configs
- OSGi best practice minibook by InfoQ -- Preface
- Best Practice 4 Minimize synchronization in Servlets
- How do I configure vncserver to start GNOME or KDE by default in Red Hat Enterprise Linux ?
- Error:(2) Apostrophe not preceded by \ (in Default product can't deleted!)
- Best practice: Para-virtualize devices by using the VirtIO API
- Best Practice of Oracle11.2.0.3 Upgrade&Rollback manually from Oracle 10.2.0.5 in Linux
- Grady Booch - '.NET将改变你的生活!'
- equals与"=="操作符的比较
- WebSphere Application Server Best Practices
- Best Practice 1 Do not store large object graphs in HttpSession
- Best Practice 2 Release HttpSessions when finished
- Best Practice 3 Do not create HttpSessions in JSPs by default
- Best Practice 4 Minimize synchronization in Servlets
- Best Practice 5 Do not use SingleThreadModel
- Best Practice 6 Use JDBC connection pooling
- 游戏制作之我见:)
- 用Java实现的eChat聊天服务器
- 贪吃蛇的算法分析(1)
- 贪吃蛇的算法分析(2)
- 贪吃蛇的算法分析(3)