像我一样的初学者
作 者: precom (皮蛋) 2000.12.10
reply.jsp
====================================
<html><head>
<META content="text/html; charset=gb2312 " http-equiv=Content-Type>
<title>张家界电话黄页(网上114)</title></head>
<style type="text/css">
<!--
BODY { FONT-FAMILY: "宋体","Arial Narrow", "Times New Roman"; FONT-SI
ZE: Arraypt }
.p1 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 12pt }
A:link { COLOR: #007Array3d; TEXT-DECORATION: none }
A:visited { TEXT-DECORATION: none }
A:hover { TEXT-DECORATION: underline}
TD { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZE
: Arraypt }
.p2 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: Arraypt; LINE-HEIGHT: 150% }
.p3 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: Arraypt; LINE-HEIGHT: 120% }
-->
</style>
<body>
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="testInq" scope="page" class="ymbean.opDb" />
<%
int pages=1;
int pagesize=10;
int count=0;
int totalpages=0;
String countsql="",inqsql="",updatesql="",lwhere="",insertsql="",st=
"";
String lw_title="",lw_author="",pagetitle="",author_http="",author_e
mail="",lw_ico="0",
lw_content="",lw_class1="";
String author_ip="",lw_time="",lw_class2="",lw_type="",zt_time="",zt
_author="";
int answer_num=0,click_num=0;
int inquire_item=1;
String inquire_itemt="",inquire_value="";
String lurlt="<a href=reply.jsp?";
lwhere=" where "; //只显示主贴
/*
Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String name = (String) e.nextElement();
*/
try{
//取显示的页页序数
pages = new Integer(request.getParameter("pages")).intValue();
} catch (Exception e) {}
try{
//取查询参数
lw_class1=new String(request.getParameter("lw_class1").getBytes
("ISO885Array_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes
("ISO885Array_1"));
zt_time=new String(request.getParameter("zt_time").getBytes("IS
O885Array_1"));
zt_author=new String(request.getParameter("zt_author").getBytes
("ISO885Array_1"));
lwhere=" where ( lw_class1="+lw_class1+" and lw_class2="+lw_
class2+
" and (lw_time="+ zt_time+" or zt_time="+zt_time+
") and (author_email="+zt_author+" or zt_author="+zt
_author+") ) ";
lurlt=lurlt+"lw_class1="+lw_class1+"&lw_class2="+lw_class2+"&zt
_time="+zt_time+
"&zt_author="+zt_author+"&";
//out.print(lwhere);
} catch (Exception e) { //out.print("error1: "+e+"<hr>");
}
try{
//取得参数 留言内容
lw_class1=new String(request.getParameter("lw_class1").getBytes("ISO
885Array_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes("ISO
885Array_1"));
lw_title=new String(request.getParameter("lw_title").getBytes("ISO88
5Array_1"));
lw_author=new String(request.getPara
http://www.chasfz.com jsp 留言板源代码 http://www.chasfz.com oracle 数据表创建. create table guestbook ( lw_title varchar2(100) not null, --...
java.text.SimpleDateFormat" %> 留言板 </...("Refresh","5;url=index.jsp"); %> [新留言]<...
JSP设计留言板代码2_计算机软件及应用_IT/计算机_专业资料。简单的JSP留言板设计代码很有用的jsp留言板源代码(2) guestbook.jsp = jsp留言板源代码(2) ...
<h1>留言管理范例 ―― JSP + JDBC 实现</h1> <% // 判断是否有错误信息,如果有则打印 // 如果没有此段代码,则显示时会直接打印 null if(request....
网上留言簿jsp实现(附所有代码)_计算机软件及应用_IT/计算机_专业资料。网页留言簿的jsp实现,附有全部的jsp代码,用MyEclipse和sqlserver数据库实现,数据库可以是...
Jsp 课程设计报告 JSP 课程设计报告书 —基于 jsp 留言板专 业: 计算机信息...主要的代码如下: <%@ include file="connDB.jsp" %> <% request.set...
网络留言板系统各功能模块的设计和实现 4.1 用户登陆界面 用户登陆界面如图 5-1 所示: 图 4-1 用户登陆册页面运行效果 用户登陆页面程序“index.jsp”代码...
(4)处理添加留言信息(Addmessage.jsp)模块代码 <% String driverName="com.mysql.jdbc.Driver"; String userName="root"; String userPassword="10086"; Strin...
jsp留言板源代码 2007-11-29 15:05 oracle数据表创建. create table guestbook ( lw_title varchar2(100) not null, --留言主题 lw_author varchar2(20) ...
热门文档