======================HelloWorld2.jsp文件修改成<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head><title>HelloWorld!</title></head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body>
Hello<%=request.getParameter("name")%>!
</body>
</html>

解决方案 »

  1.   

    还是不好用啊,点了传送就弹出来文件下载是否保存的对话框,点保存就把helloworld2的文本文件给保存下来了呢,
      

  2.   

    你的jsp没有配置到web服务器的环境中。
    配置一个tomcat或者别的服务器吧
      

  3.   

    你的   html    和  jsp  放在tomcat
    的同一个服务下了吗 ?
    html这样改
    <html>
    <body>
    <head><title>hello1</title>
    </head>
    <form name="form1" method="get" action="HelloWorld2.jsp">
    名称<input type="text" name="name">
    <input type=submit value=传送>
    </form>
    </body>
    </html>jsp:
    名为HelloWorld2.jsp
    <%@ page contentType="text/html;charset=gb2312" %>
    <html>
    <head><title>hello2</title></head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <body>
    Hello<%=request.getParameter("name")%>
    </body>
    </html>
    记住  开发时一个标点符号都不能错,你的一个html就丢那么多符号;