input.jsp<@page MIME="text/html;charset=GBK">
<%
  String str = request.getParameter("content");
%>
<h2><%=str%></h2>input.html<form action="input.jsp" name="myform">
   <input type="text" name="content"><br>
   <input type="submit" name="submit" value="显示">
</from>运行结果:
the server encountered an internal error() that prevented it from fulfilling,什么原因?

解决方案 »

  1.   


    <!-file name:index.jsp-->
    <form action="input.jsp" name="myform" method="post">
       <input type="text" name="content"><br>
       <input type="submit" name="submit" value="显示">
    </from>
    <!--///////////////////////////////////////-->
    <!-file name:input.jsp-->
    <@page MIME="text/html;charset=utf-8">
    <%
      String str = (String)request.getParameter("content");
    %>
    <h2><%=str%></h2>
      

  2.   

    已经解决,<%@page contentType="text/html;charset=GBK"
      

  3.   

    妈呀,你page指令瞎改什么啊,我还真没注意是这个问题,MIME类型一般是在操作文件的时候会专门设置