| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 703 人关注过本帖
标题:jbuilder 2005 小程序运行 在Tomcat 5.5下正确在2005下错误
只看楼主 加入收藏
derming
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-9-4
收藏
 问题点数:0 回复次数:0 
jbuilder 2005 小程序运行 在Tomcat 5.5下正确在2005下错误

在Tomcat 5.5下能运行 但在Jbuilder 2005 下某一工程出现错误 两个数相加

<html> <head> <title>ASP Quest.htm</title> </head> <body bgcolor="#FFFFFF"> <form method="POST" action="Answer.jsp"> <p>请输入相加的两个整数,然后按"提交":</p> <p><input type="text" name="num1" size="5">+ <input type="text" name="num2" size="5"></p> <p><input type="submit" value="提 交" name="B1"></p> </form> </body> </html>

Answer.jsp

<%@ page import="java.lang.*"%> <html> <head> <title> Answer.jsp</title> </head> <body bgcolor="#FFFFFF"> <%! Integer n1,n2; int sum; %> <% n1=new Integer(request.getParameter("num1")); n2=new Integer(request.getParameter("num2")); sum=n1.intValue()+n2.intValue(); %> <p> <%=n1%>+<%=n2%>=<%=sum%> </p> </body> </html> 提交后出现如下错误

Help viewer error URL:

Submit operation requires running web serverThe most likely cause of this problem is trying to submit (POST) a form in a file (like an HTML, SHTML, or JSP file); but because the file is being read from the disk -- instead of from a running web server -- the submit is invalid.Instead of clicking the Submit button from the View page of the document, right-click the file in the project view and choose Web Run to display the file in the <strong>Web View</str

请指教

搜索更多相关主题的帖子: Tomcat jbuilder 运行 
2005-09-04 17:12
快速回复:jbuilder 2005 小程序运行 在Tomcat 5.5下正确在2005下错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023053 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved