复制代码代码如下:
<%@ Page Language = "java" import = "java.util.*" PageEncoding = "utf-8"%>
<%
String path = request.getContextPath ();
String basalepath = request.getScheme ()+": //"+request.getServername ()+":"+request.getServerport ()+path+"/";
%>
<!
<html>
<head>
<base href = "<%= bashepath%>">
<title> minha página de partida JSP 'Check.jsp' </title>
<meta http-equiv = "Pragma" content = "no-cache">
<meta http-equiv = "cache-control" content = "no-cache">
<meta http-equiv = "expira" content = "0">
<meta http-equiv = "palavras-chave" content = "palavra-chave1, palavra-chave2, palavra-chave3">
<meta http-equiv = "description" content = "Esta é a minha página">
<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 () {
// $ ("#caixa"). Clique (function () {
// if ($ ("#caixa"). att ("verificado") == "checked") {
// alert ("ss");
//}
//})
if ($ ("#caixa"). Is (": verificado")) {
alerta ("df");
}
})
</script>
</head>
<Body>
<entrada de entrada = "caixa de seleção" id = "caixa" checked = "checked">
</body>
</html>