复制代码代码如下:
<%@ 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>
<голова>
<base href = "<%= basepath%>">
<TILE> My JSP 'fackbox.jsp' Начальная страница </title>
<meta http-equiv = "pragma" content = "no-cache">
<meta http-equiv = "cache-control" content = "no-cache">
<meta http-equiv = "истекает" content = "0">
<meta http-equiv = "Keywords" content = "Keyword1, Keyword2, Keyword3">
<meta http-equiv = "description" content = "Это моя страница">
<script type = "text/javascript" src = "< %= request.getContextPath () %>/jQuery/jQuery-1.7.min.js"> </script>
<!-
<link rel = "styleSheet" type = "text/css" href = "styles.css">
->
<script type = "text/javascript">
$ (function () {
// $ ("#box"). Click (function () {
// if ($ ("#box"). attr ("cherced") == "проверено") {
// alert ("ss");
//}
//})
if ($ ("#box"). IS (": cherced")) {
оповещение ("DF");
}
})
</script>
</head>
<тело>
<input type = "fackbox" id = "box" fected = "cherced">
</body>
</html>