关于jsp调用js文件与内嵌js语句的问题
<%@ page contentType="text/html; charset=GBK"%><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@page import="java.util.HashMap" %>
<%@page import="com.vanf.sysmanage.UserUtil" %>
<%
HashMap cMap = new HashMap();
UserUtil cc = new UserUtil();
cMap = cc.getcMap();
%>
<html>
<head>
<script language ="javascript" src ="js/calendar.js" ></script>
<script language ="javascript"> //这是第十八行
function doserch(){
var bt = document.ColumnForm.begintime.value;
var dt = document.ColumnForm.deadtime.value;
if("".equals(bt)||"".equals(dt)){
alert("日期不能为空");
return false;
}
if(dt<bt){
alert("截止时间必须大于起始时间");
return false;
}
ColumnForm.submit();
}
</script>
</head>
<body>
<html:form action="/NewsManageAction.do">
<html:hidden property="doType" value="count"/>
<tr>
<td>起始时间
<html:text property="begintime" onclick="fPopUpCalendarDlg(this)"/>
</td>
<td>截止时间
<html:text property="deadtime" onclick="fPopUpCalendarDlg(this)"/>
</td>
<td><html:button value="查询" property="submit" onclick="javascript:doserch();"/>
</td>
<td>
<html:reset property="reset" value="清空"/>
</td>
</tr>
</html:form>
<logic:iterate id="count" name="clist">
<bean:define id="cid" name="count" property="key"/>
<tr>
<td><%=(String)cMap.get(cid)%>
<bean:write name="count" property="value"/>
</td>
</tr>
</logic:iterate>
</body>
</html>
calendar.js执行正常 但是一点击查询按钮 网页就报错 18行 对象不支持此属性或方法