| session-config>      < session-timeout>20< /session-timeout>   < /session-config>  
 < mima-mapping>  
mime-mapping包含两个子元素extension和mime-type.定义某一个扩展名和某一MIME Type做对映.  
< extension>扩展名名称< /extension>  
扩展名称  
< mime-type>MIME格式< /mime-type>  
MIME格式.  
范例:  
- < mime-mapping>   
 -    < extension>doc< /extension>   
 -    < mime-type>application/vnd.ms-word< /mime-type>   
 - < /mime-mapping>   
 - < mime-mapping>   
 -    < extension>xls< /extension>   
 -    < mime-type>application/vnd.ms-excel< /mime-type>   
 - < /mime-mapping>   
 - < mime-mapping>   
 -    < extension>ppt< /extesnion>   
 -    < mime-type>application/vnd.ms-powerpoint< /mime-type>   
 - < /mime-mapping>  
 
  
< welcome-file-list>  
welcome-file-list包含一个子元素welcome-file.用来定义首页列单.  
< welcome-file>用来指定首页文件名称< /welcome-flie>  
welcome-file用来指定首页文件名称.我们可以用< welcome-file>指定几个首页,而服务器会依照设定的顺序来找首页.  
范例:  
- < welcome-file-list>   
 - < welcome-file>index.jsp< /welcome-file>   
 - < welcome-file>index.htm< /welcome-file>   
 - < /welcome-file-list>  
 
  
< error-page>  
error-page元素包含三个子元素error-code,exception-type和location.将错误代码(Error Code)或异常(Exception)的种类对应  
到web站台资源路径.  
< error-code>错误代码< /error-code>  
HTTP Error code,例如: 404  
< exception-type>Exception< /exception-type>  
一个完整名称的Java异常类型  
< location>/路径< /location>  
在web站台内的相关资源路径  
范例:  
- < error-page>   
 -    < error-code>404< /error-code>   
 -    < location>/error404.jsp< /location>   
 - < /error-page>   
 - < error-page>   
 -    < exception-type>java.lang.Exception< /exception-type>   
 -    < location>/except.jsp< /location>   
 - < /error-page>  
 
  
< jsp-config>  
jsp-config元素主要用来设定JSP的相关配置,< jsp:config>包括< taglib>和< jsp-property-group>两个子元素.其中< taglib>元素  
在JSP 1.2时就已经存在了;而< jsp-property-group>是JSP 2.0新增的元素.  
< taglib>  
taglib元素包含两个子元素taglib-uri和taglib-location.用来设定JSP网页用到的Tag Library路径.  
< taglib-uri>URI< /taglib-uri>   |