JSP页面跳转
formTest.jsp代码(提交form):
secondDemo.jsp(显示提交内容):
在IE浏览器提交后提示下载,但在firefox显示正常,各位大侠如何解决?
<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head><title>表单页面</title></head>
<body>
<form name="loginForm" action="secondDemo.jsp" method="post">
<input type="text" name="userName" />
<input type="submit" value="提交"/>
</form>
</body>
</html>
secondDemo.jsp(显示提交内容):
<%@page contentType="text/html charset=UTF-8"%>
<%@page import="java.util.Map"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>第二个Demo</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
%>
<%=request.getParameter("userName")%>
</body>
</html>
在IE浏览器提交后提示下载,但在firefox显示正常,各位大侠如何解决?
...全文
相关推荐
JSP页面跳转方法总结
jsp的几种跳转方法,希望能对你们有所帮助
页面自定跳转 超链接 跳转 jsp页面跳转
页面自定跳转 超链接 跳转 jsp页面跳转
五种 JSP页面跳转方法详解
jsp实现页面跳转的实现代码,五种方法,大家可以根据需要选择。
五种JSP页面跳转方法详解
五种JSP页面跳转方法详解,详细的很
JSP页面跳转方法小结
实现JSP页面跳转,有如下几种方式: n 使用href超链接标记 (客户端跳转) n 使用JavaScript (客户端跳转) n 提交表单 (客户端跳转) n 使用response对象 (客户端跳转) n 使用forward动作标记 (服务器端跳转) n 使用Reques


Web 开发
