我的意思比如用户名,密码等信息,从浏览器传回到服务器的指定单元进行处理,怎样能让这些信息不在url中体现出来,尤其是密码

解决方案 »

  1.   

    把页面的<form method="get">中的get改成post
      

  2.   

    各位请具体一点,这样我还得去查怎样使用post、https提交,这个等急用,同时手上还要做其他的,多谢了,
      

  3.   

    楼上不是写得很明白了吗?<form action="..." method="post">
    ....
    </form>
      

  4.   

    action里面写什么?在这里指定服务器处理单元(页面)吗?
      

  5.   

    就是这里,具体怎么写action,一个脚本函数?
      

  6.   

    晕了,你既然发在这个版,根据你的情况,应该是一个JSP页面(可能调用JavaBean)来完成<form action="register.jsp" method="post">
    ....
    </form>
      

  7.   

    ……,new,only jsp,这个明白了,那参数呢?submit?
    验证后要提示是否正确,怎么把验证的结果传回来?如果正确则从login页面跳到用户使用页面,而且是login.html,不是jsp,
      

  8.   

    <form action="register.jsp" method="post">
    <input type="text" name="username">
    <input type="password" name="password">
    <input type="submit" name="submit" value="提交">
    </form>验证正确可以进入用户使用页面,否则跳转到错误页面response.sendRedirect("xx.jsp")
      

  9.   

    多谢,随便问一个中文显示问题,
    textList["userBelongs"] = "成员列表";
    document.writeln('<font color="xx"><b>' + textList["userBelongs"] + '</b><br></font>');
    结果显示为"????"
    需要怎么设置?
    搞定就给分了,呵呵
      

  10.   

    页面编码设置为gb2312<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
      

  11.   

    还是不行,我的代码是这样的<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <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>');
    ……
      

  12.   

    textList["userBelongs"] 的内容是哪里来的,这个是javaScript啊
      

  13.   

    textList["userBelongs"] = "成员列表";
    是我定义的javascript数组,textList[]是在另外一个js文件中定义的,那个文件也需要设置吗?
      

  14.   

    我直接写
    <td>CN</td>,即使用UTF-8也是可以的,
      

  15.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <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>');  中文正确显示
      

  16.   

    补充:
    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>
      

  17.   

    var textList = new Array();
    textList["userBelongs"]="xx";这个是从你的JS文件中复制出来的吗?= 变成了全角的 =了
      

  18.   

    那不是复制的,是我自己在这里输入的,今天我重新打开那个js文件时,已经变成textList["userBelongs"] = "????"了