我的意思比如用户名,密码等信息,从浏览器传回到服务器的指定单元进行处理,怎样能让这些信息不在url中体现出来,尤其是密码
解决方案 »
- 在Jpanel上绘图为何不显示
- java 怎么把txt转成xml
- struts xml配置文件如何理解
- 轻松一下,玩个小游戏,我实在想不出来结果
- 求页面中APPLET弹出窗口解决方案
- [Swing]JTextPane的Document里插如超链接事件
- Class.forName()中找不到类
- 小弟有一道习题,实在不行了,我只能编出框架来,调用接口监听和文件存取时总是出错,不知道为什么? 哪位好心的大哥给编一下,小弟这里谢过
- 想知道哪里有相关java摄像头编程的文章或开发包
- jbuilder的光标问题
- 诚心请教一个关心Java编译的问题!
- 请问Eclipse中有 JFileChooser 控件吗?
....
</form>
....
</form>
验证后要提示是否正确,怎么把验证的结果传回来?如果正确则从login页面跳到用户使用页面,而且是login.html,不是jsp,
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" name="submit" value="提交">
</form>验证正确可以进入用户使用页面,否则跳转到错误页面response.sendRedirect("xx.jsp")
textList["userBelongs"] = "成员列表";
document.writeln('<font color="xx"><b>' + textList["userBelongs"] + '</b><br></font>');
结果显示为"????"
需要怎么设置?
搞定就给分了,呵呵
<html>
<head>
<title>userList.htm</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta http-equiv="imagetoolbar" content="false">
<script language="JavaScript" type="text/javascript">
……
document.writeln('<font color="xx"><b>' + textList["userBelongs"] + '</b><br></font>');
……
是我定义的javascript数组,textList[]是在另外一个js文件中定义的,那个文件也需要设置吗?
<td>CN</td>,即使用UTF-8也是可以的,
<html>
<head>
<title>userList.htm</title> <meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta http-equiv="imagetoolbar" content="false"> <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script language="JavaScript" type="text/javascript" charset=gb2312">
document.writeln('</head>'); var m = parent.MapFrame;
document.writeln('<body bgcolor="' + m.backColor + '" text="' + m.textColor + '" >');
document.writeln('<div align="center">');
document.writeln('<form>');
document.writeln('<font><b>成员列表</b></font>');
document.writeln('<font face="' + m.layerListTextFont + '" color="' + m.layerListTextColor + '"><b>' + m.textList["userBelongs"] + '</b><br></font>'); document.writeln('<table>');
<……无关代码>
document.writeln('</table>');
document.writeln('</form>');
document.writeln('</div>');
</script>
</body>
</html>m.textList["userBelongs"]是写在另外的文件textlist.js里
var textList = new Array();
textList["userBelongs"]="xx";这行代码:document.writeln('<font><b>成员列表</b></font>'); 中文正确显示
var url = "map.jsp"
MapFrame.document.location = urlmap.jsp:
<%@ page contentType="text/html; charset=ISO-8859-1" %>
<title>Map</title>
<script language="JavaScript" src="textList.js" type="text/javascript"></script>
textList["userBelongs"]="xx";这个是从你的JS文件中复制出来的吗?= 变成了全角的 =了