问题描述
在<%if(exception!=null)out.println(exception.getMessage()+"<br>");%>一行提示exceptioncannotbesolved初学javaweb,大虾们帮下忙,开发平台用的apache+myeclipse+mysql下面是代码<%@pagelanguage="java"import="java.util.*"pageEncoding="gb2312"contentType="text/html;charset=gb2312"errorPage="true"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><basehref="<%=basePath%>"><title>系统错误</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="Thisismypage"><!--<linkrel="stylesheet"type="text/css"href="styles.css">--></head><body><fontcolor="red"><%if(exception!=null)out.println(exception.getMessage()+"<br>");%></font></body></html>