我把一个网页的头部作为一个banner.jsp <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>公安局局长信箱</title>
<link type="text/css" rel="stylesheet" href="style.css"></link>
<script src="/includes/aBase.js"></script>
<script language="javaScript" src="/includes/aEdit.js"></script>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" id="border_top">
<tr>
<td height="87"><img src="Images/001.gif" width="780" height="87" /></td>
</tr>
<tr>
<td height="7" background="Images/002.gif"></td>
</tr>
</table>是在eclipse中做的 问题在于这个banner.jsp不能保存 非要在首行写上<%@ page contentType="text/html;charset=utf-8" errorPage="/common/error.jsp"%>
可我看有的人没写这个也能保存 请问我该如何解决
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>公安局局长信箱</title>
<link type="text/css" rel="stylesheet" href="style.css"></link>
<script src="/includes/aBase.js"></script>
<script language="javaScript" src="/includes/aEdit.js"></script>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" id="border_top">
<tr>
<td height="87"><img src="Images/001.gif" width="780" height="87" /></td>
</tr>
<tr>
<td height="7" background="Images/002.gif"></td>
</tr>
</table>是在eclipse中做的 问题在于这个banner.jsp不能保存 非要在首行写上<%@ page contentType="text/html;charset=utf-8" errorPage="/common/error.jsp"%>
可我看有的人没写这个也能保存 请问我该如何解决
解决方案 »
- 前台内存占满
- Hql的查询结果 和 SQL的结果 有出入 求解 求解!!!
- 协同办公系统考勤管理出异常,高分求救,能者多拿,帮顶的给辛苦分
- 在struts中,关于用validator框架去验证表单,显示错误信息的问题
- 请教高手一个分页的算法!!!!!!!!!!!!!!
- 看了一个晚上,也不知道是在哪里出了问题,请各位大虾门指教指教
- 这个问题,好郁闷!
- ★★为什么我连接mysql失败?
- 这个是什么东西?页面打不开,怎么后缀名都没有??<FRAME SRC="/pushlet/servlet/pushlet?subject=
- 入门jsp报Unable to compile class for JSP错,救助
- 输入法怎么转换的问题
- http://localhost:8080/authproxy/?_return=http://localhost:80/1.jsp?id=1
否则必须加上
因为网页代码已经不属于jsp内部内容了
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
agree with this idea!