日期:2014-05-16 浏览次数:20560 次
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'Msg.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <link href="<%=basePath%>ext2.0/resources/css/ext-all.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="<%=basePath%>ext2.0/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="<%=basePath%>ext2.0/ext-all-debug.js"></script> <script type="text/javascript" src="<%=basePath%>ext2.0/build/locale/ext-lang-zh_CN.js"></script> <script type="text/javascript" src="msg.js"></script> </head> <body> </body> </html>
?以上为JSP代码,其中msg.js是与JSP在同一目录,内容如下:
Ext.onReady(function(){ alert(11); });
?
项目运行起来了,可是死活不弹出对话框,用ff--脚本看不到msg.js!
?
不知道有没有人遇到过同样问题,都是什么原因,如何解决?
在线等,求指教