摘要: 静态包含:<%@ include file="要包含的文件的路径">定义三个要包含的文件info.html,info.jsp,info.incinfo.html文件内容: <h1> <font color="red">info.html</font> </h1>info.jsp文件内容: <h1> <font color="green"><%="info.jsp"%></font> </h1>in 阅读全文
posted @ 2011-09-26 15:59 techstan 阅读(1080) 评论(0) 推荐(1) 编辑
摘要: 1.指定错误出现时的跳转页,通过errorPage属性决定2.错误页必须要有明确标识,通过isErrorPage属性决定如果一个jsp页面出现错误,会通过errorPage指定的页面进行跳转,被跳转的页面必须将isErrorPage设置为true!例子:show.jsp<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%><%@ page errorPage="error.jsp"%><%--一旦j 阅读全文
posted @ 2011-09-26 15:53 techstan 阅读(1483) 评论(0) 推荐(0) 编辑