| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1959 人关注过本帖
标题:用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象
取消只看楼主 加入收藏
Grace_TT
Rank: 1
等 级:新手上路
威 望:1
帖 子:324
专家分:0
注 册:2005-12-21
收藏
 问题点数:0 回复次数:3 
用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象
就是下面的这个.jsp程序,我如果在MyEclipse里启动Tomcat服务,然后在Web Browser或者IE执行这个页面:http://localhost:8088/shop/reg.jsp;MyEclipse就会自动弹出一个消息框:This kind of launch is configured to open the Debug perspective when it suspends.Do you want to open the perspective now? 我选择Yes它就会打开Debug,但是页面始终停在一半,根本打不开。

接着,我将MyEclipse里的Tomcat服务Stop掉,然后开始-》程序-》Apache Tomcat 5.0 -》Start Tomcat ,然后在IE地址栏中:
http://localhost:8088/shop/reg.jsp;页面就能正常显示了,这是怎么回事呀??



因为我通常都是在在MyEclipse里启动Tomcat服务,来执行.jsp文件,所以如果总是出现这种现象,而又不清楚问题出现在哪儿,会很影响学习。

如果谁知道的说一下吧,不胜感激!!
搜索更多相关主题的帖子: Eclipse Tomcat 现象 
2006-06-29 07:37
Grace_TT
Rank: 1
等 级:新手上路
威 望:1
帖 子:324
专家分:0
注 册:2005-12-21
收藏
得分:0 
那你就用Eclipse+MyEclipse+Tomcat 试一下嘛,帮个忙!~

呵呵!
2006-06-29 10:10
Grace_TT
Rank: 1
等 级:新手上路
威 望:1
帖 子:324
专家分:0
注 册:2005-12-21
收藏
得分:0 

忘记把程序贴上来了:
<%@ page language="java" import="java.sql.*" %>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD><BODY bgColor=#ffffff leftMargin=0 topMargin=5 marginheight="5" marginwidth="5">
<table align="center" border="0" width="760" height="18" bgcolor="#3399FF" cellspacing="0">
<tr>
<td width="100%">
<p><a href="list_all_user.jsp">????</a> |
<a href="../book_store/index.jsp">????</a> |
<a href="../search/index.jsp">????</a> |
<a href="../book_store/all_category.jsp">????</a> |
<a href="../book_store/new_goods.jsp">????</a> |
<a href="../book_store/good_price.jsp">????</a> |
<a href="../book_store/short_goods.jsp">????</a> |
<a href="../book_store/shopcart.jsp" target="_blank">???</a> |
<a href="../book_store/order.jsp" target="_blank">??</a> |
<a href="forum/index.jsp" target="_blank">??</a> |
<a href="chat/index.jsp" target="_blank">???</a></td>
</tr>
</table>
<jsp:useBean id="clock" scope="page" class="hh.JspCalendar" type="hh.JspCalendar" /> <jsp:useBean id="workM" scope="page" class="hh.faq" />
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
<TBODY>
<tr>
<td align="left" height=25>
<%if(session.getAttribute("username")!=null)
{
out.println(session.getAttribute("username"));
}
%> ?????<a href="../index.jsp">??</a> -&gt; ????
</td>
<td align="right"> <td align="right">
<font color="Red"><jsp:getProperty name="clock" property="year"/></font>?
<font color="Red"><jsp:getProperty name="clock" property="month"/></font>?
<font color="Red"><jsp:getProperty name="clock" property="dayOfMonth"/></font>?
??<font color="Blue"><b><jsp:getProperty name="clock" property="day"/></b></font>&nbsp;&nbsp;
</td>
<td>????? <jsp:getProperty name="clock" property="time"/>
</td></tr>
<TR bgColor=#3399ff>
<TD height=1 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></TD></TR>
<tr><td height=10 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></td></tr>
</TBODY></TABLE><table align="center" border="0" width="760" cellspacing="0" cellpadding="0" height="355">
<tr>
<td width="150" height="355" valign="top">
<table border="1" width="100%" cellspacing="0"cellpadding="0">
<tr>
<td width="100%" valign="top" style="border: 1 solid #3399FF">
<table border="0" width="100%" cellspacing="0">
<tr>
<td width="100%" bgcolor="#3399FF" height="18" align="center"><font color="#ffffff">????</font></td>
</tr>
<tr>
<td width="100%" height="23" align="center"><a href="login.jsp"><b>????</b></a> <a href="reg.jsp"><b>????</b></a></td>
</tr>
<tr>
<td width="100%" bgcolor="#3399FF" height="18" align="center"><font color="#ffffff">????</font></td>
</tr>
<tr>
<td width="100%">
<table border="0" width="98%" align="center" cellspacing="0">
<tr>
<td align="right" height="20" width="60%">?????</td>
<% int t_member;
t_member=0;
String strSQLmem="SELECT id FROM member";
ResultSet RSmem = workM.executeQuery(strSQLmem);
while(RSmem.next()){
t_member=t_member+1;
}
%>
<td align="left" width="40%"><%=t_member%></td>
</tr>
</table>
</td>
</tr>


</table> </td>
</tr>
</table>
</td>
<td width="10" height="100%"></td>
<td width="1" height="100%" bgcolor="#3399ff"></td>
<td width="10" height="100%"></td>
<td width="589" height="331" valign="top" background="images/bg1.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="307">
<tr align=center>
<td width="100%" colspan="4" height="20" bgcolor="#3399ff">&nbsp;<font color="#ffffff">????????????????????</font>
</td>
</tr>

<tr>
<td width="100%" align="center" colspan="4" height="36"> ???????? </td>
</tr>
<form name="form1" method="post" action="reg_ok.jsp">
<tr>
<td align="right" ><b>?????</b></td>
<td >&nbsp;</td>
<td colspan="2" >
<input type="text" name="logname" value="wangxining">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="realname" value="wangwang">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="password" name="passwd1" value="blueriver">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="password" name="passwd2" value="blueriver">
</td>
</tr>
<tr>
<td align="right"><b>?????</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="email" value="wangxining@263.net">
</td>
</tr>
<tr>
<td align="right"><b>?&nbsp;&nbsp;&nbsp;&nbsp;??</b></td>
<td>&nbsp;</td>
<td colspan="2">
<input type="radio" name="Gender" value="0" checked>
?
<input type="radio" name="Gender" value="1">
? </td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="phone" value="">
</td>
</tr>
<tr>
<td align="right">???????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="problem" value="">
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<input type="text" name="answer" value="">
</td>
</tr>
<tr>
<td align="right">???</td>
<td>&nbsp;</td>
<td colspan="2">
<select name="Province" size="1">
<option value="null" >???</option>
<option value="Beijing" >??</option>
<option value="Tianjin" >??</option>
<option value="Shanghai" >??</option>
<option value="Chongqing" >??</option>
<option value="Hebei" >??</option>
<option value="Henan" >??</option>
<option value="Heilongjiang">???</option>
<option value="Jinlin" >??</option>
<option value="Shenyang" >??</option>
<option value="Neimenggu" >???</option>
<option value="Hainan" >??</option>
<option value="Shanxi" >??</option>
<option value="Shanxi3" >??</option>
<option value="Shandong" >??</option>
<option value="Jiangsu" >??</option>
<option value="Zhejiang" >??</option>
<option value="Anhui" >??</option>
<option value="Jiangxi" >??</option>
<option value="Fujian" >??</option>
<option value="Gansu" >??</option>
<option value="Ningxia" >??</option>
<option value="Qinghai" >??</option>
<option value="Xinjiang" >??</option>
<option value="Hubei" >??</option>
<option value="Hunan" >??</option>
<option value="Guangxi" >??</option>
<option value="Sichuan" >??</option>
<option value="Guizhou" >??</option>
<option value="Yunnan" >??</option>
<option value="Xizang" >??</option>
<option value="Hongkong" >??</option>
<option value="Aomen" >??</option>
<option value="Taiwan" >??</option>
</select>
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<select name=education size=1>
<option value="null" selected>?? ...</option>
<option value="Below high school">??????</option>
<option value="high school/5-year college">??/??</option>
<option value="College/University">??/??</option>
<option value="Graduate and above">?????</option>
</select>
</td>
</tr>
<tr>
<td align="right">?????</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="1@">
?????/???
&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="2@">
????? </td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="3@">
???????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="4@">
???????</td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="5,">
??/??/??
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="6,">
???? </td>
</tr><tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="7,">
????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="8,">
???? </td>
</tr><tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td>
<input type=checkbox name=hobbies value="9,">
????
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=checkbox name=hobbies value="10,">
???? </td>
</tr>
<tr>
<td align="right" valign="top">?????</td>
<td>&nbsp;</td>
<td colspan="2">
<textarea name="selfintro" cols="40" rows="5">selddddddddd</textarea>
</td>
</tr>
<tr>
<td align="right">&nbsp;</td>
<td>&nbsp;</td>
<td align="left" colspan="2">
<input type="button" value="???" onclick="sub()">
<input type="reset" value="??">
<script language="javascript">
function sub()
{
if(document.form1.logname.value=="")
{
window.alert("?????????");
window.form1.logname.focus();
return false;
}
if(document.form1.realname.value=="")
{
window.alert("????????");
window.form1.realname.focus();
return false;
}
if(document.form1.passwd1.value=="")
{
window.alert("??????");
window.form1.passwd1.focus();
return false;
}
if(document.form1.passwd1.value!=document.form1.passwd2.value)
{
window.alert("??????");
window.form1.passwd2.focus();
return false;
}
if(document.form1.email.value=="")
{
window.alert("?????E_mail?");
window.form1.email.focus();
return false;
}
document.form1.submit();
}
</script>
</td>
</tr>
</form>

</table>


</td>
</tr>
</table><hr align="center" color="#3399ff" width="760" >
<table align="center" border="0" width="760">
<tr><td width="100%" height="18" align="center"><P class="foot">&copy; 2001 ???<a href="mailto:blueriver_cn@sina.com">Blueriver</a>
</P>
<P class="foot">?????JSP?????????
</P>
</td>
</tr>
<tr><td>

</tr>

</table>
</body>
</html>

2006-06-29 10:17
Grace_TT
Rank: 1
等 级:新手上路
威 望:1
帖 子:324
专家分:0
注 册:2005-12-21
收藏
得分:0 

那。。。那你到底是帮不帮我 呢?

2006-06-29 10:46
快速回复:用Eclipse+MyEclipse+Tomcat 出现了一个我理解不了的怪现象
数据加载中...
 
   



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

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