读书人

初学者各位

发布时间: 2013-09-11 17:59:58 作者: rapoo

菜鸟求助各位大虾
Example3_1.jsp
<%@ page contentType= "text/html;charset=GB2312 " %>
<HTML>
<BODY bgcolor=cyan> <FONT size=3>
<FORM action= "tree.jsp " method=post name=form>
<INPUT type= "text " name= "boy ">
<INPUT TYPE= "submit " value= "Enter " name= "submit ">
</FORM>
</FONT>
</BODY>
</HTML>

tree.jsp
<%@ page contentType= "text/html;charset=GB2312 " %>
<HTML>
<BODY bgcolor=cyan> <FONT size=4>
<P> 获取文本框提交的信息:
   <%
String textContent=request.getParameter( "boy ");
%>
<BR>
<%=textContent%>
<P> 获取按钮的名字:
   <%
String buttonName=request.getParameter( "submit ");
%>
<BR>
<%=buttonName%>
</FONT>
</BODY>
</HTML>
  为什么在http://localhost:8080/Example3_1.jsp 中打开说 The server encountered an internal error () that prevented it from fulfilling this request. 存放地址绝对没错

[解决办法]
你把Example3_1.jsp和tree.jsp放到tomact的目录下试试
[解决办法]
这两个jsp 要放到 tomcat的

webapps\ROOT 目录下 才可以这样访问
[解决办法]
我把你的代码放在我的服务器下,没有任何问题,我用的是tomcat5.5.16
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

读书人网 >Java Web开发

热点推荐