【JSP开源代码栏目提醒】:网学会员为需要JSP开源代码的朋友们搜集整理了validaycomm.jsp相关资料,希望对各位网友有所帮助!
<%@ page language="java" import="java.util.*,com.Hibernate.persistence.*,com.Hibernate.util.*" pageEncoding="gb2312"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'validay.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,key
word3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
String strname = request.getParameter("account");
String password = request.getParameter("password");
Gethibernate geth = new Gethibernate();
List list = geth.findUser(strname,password);
if(!list.isEmpty()){
for(int i= 0;i<list.size();i++){
Consumer cons = (Consumer)list.get(i);
application.setAttribute("cons",cons);
}%>
<script language="javascript">
alert("确定要删除评论信息吗!");
window.location.href='deletecomm.jsp?id='+<%=request.getParameter("id")%>;
</script>
<%}
else{
%>
<script language="javascript">
alert("只有博主才能删除评论信息!");
window.location.href='head_comm.jsp';
</script>
<%}%>
</body>
</html>