<%@ page contentType="text/html;charset=gb2312" %>
解决方案 »
- 请各位帮忙(org.apache.jasper.JasperException: Exception in JSP)
- 文件路径问题。。
- checkbox 全选的时 如何不把控制 全选 的那个复选框 在 提交表单的时候不传直到后台?
- 有关tomcat虚拟目录的问题
- 关于Struts2的注解
- 新手求救:Tomcat连接mysql怎么老是报错。
- Jsp调用JavaBean问题
- 关于struts1.0中模板使用的简单介绍
- 如何在一个JavaBean中调用另一个JavaBean?
- 在myeclipse中运行项目出现500错误,是怎么回事,求助
- 为什么在Servlet中调用另外一个class会出错?
- 请教:装好JSWDK,JDK1.4后,在autoexec.bat里面要设置些什么呢?我一运行startserver,就出现下面的
<%@ page contentType="text/html;charset=GB2312"
%>
<%
//这就是从表单中得到的数据
String error = request.getParameter("error");
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="author" content="denghui">
<meta name="email" content="[email protected]">
<title>ÇëÇóÒ³Ãæ³ö´í</title>
<style fprolloverstyle>A:hover {color: red; font-weight: bold}
</style>
<LINK href="css/Error.css" rel=STYLESHEET type=text/css>
</head><body class="bg"><div align="left">
<table border="4" width="77%" height="199" cellspacing="0" cellpadding="0" bordercolordark="#F5F5F5" align="left" bordercolorlight="#F5F5F5" bgcolor="#F5F5F5">
<tr>
<td width="100%" height="15" valign="top" align="left">
<p align="left"><img border="0" src="images/lock.gif" width="32" height="32"><font class="bigRed">ÇëÇóÒ³Ãæ³ö´í</font></p>
<p align="left"></td>
</tr>
<center>
<tr>
<td width="100%" height="28"><font class="smallBlack">ÄúÎÞ·¨·ÃÎÊÄ¿Ç°µÄÒ³Ãæ</font></td>
</tr>
<tr>
<td width="100%" height="45"><font class="smallBlack">Ô­ÒòÊÇ£º<%=error%></font>
<hr>
</td>
</tr>
<tr>
<td width="100%" height="146" valign="top" align="left"><font class="smallBlack">Çë³¢ÊÔÒÔϲÙ×÷:</font>
<ul>
<li><font class="smallBlack">µ¥»÷<a href="javascript:location.reload()"><img border="0" src="images/flush.gif" width="13" height="16">Ë¢ÐÂ</a>°´Å¥£¬»òÒÔºóÔÙÊÔ¡£</font></li>
<li><font class="smallBlack">Èç¹ûÔÚµØÖ·À¸ÖмüÈëµØÖ·£¬ÇëÈ·±£ÆäƴдÕýÈ·¡£</font></li>
<li><font class="smallBlack">Õ¾µãÒªÇó 128-λµÄÁ¬½Ó°²È«ÐÔ¡£µ¥»÷°ïÖú²Ëµ¥£¬È»ºóµ¥»÷¹ØÓÚä¯ÀÀÆ÷¿ÉÒԲ鿴ÄúËù°²×°µÄ°²È«ÐÔ³¤¶È¡£</font></li>
<li><font class="smallBlack">ÏòÊý¾Ý¹ÜÀíÔ±²éѯÓйØÐÅÏ¢¡£</font></li>
<li><font class="smallBlack">µ¥»÷<a href="javascript:history.go(-1)"><img border="0" src="images/back.gif" width="50" height="20">ºóÍË</a>°´Å¥£¬³¢ÊÔÆäËûÁ´½Ó¡£</font></li>
</ul>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
%>
<%
//这就是从表单中得到的数据
String error = request.getParameter("error");
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="author" content="denghui">
<meta name="email" content="[email protected]">
<title>请示页面出错</title>
<style fprolloverstyle>A:hover {color: red; font-weight: bold}
</style>
<LINK href="css/Error.css" rel=STYLESHEET type=text/css>
</head>
后面的都可以不看
我的环境为window2000+apache1.3.19+resin1.3.b1+jdk1.3,而类似的问题我也遇见过,但我都已解决.
String temp = request.getParameter("error");
String error = new String(temp.getBytes("ISO8859_1"),"GBK");我自己写的jsp里面就是这么用的,一切OK