jsp留言板源代码三: 给jsp初学者.

完美版唐三藏

完美版唐三藏

2016-01-29 12:03

jsp留言板源代码三: 给jsp初学者.,jsp留言板源代码三: 给jsp初学者.
  作 者: 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: 9pt }
.p1 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 12pt }
A:link { COLOR: #00793d; TEXT-DECORATION: none }
A:visited { TEXT-DECORATION: none }
A:hover { TEXT-DECORATION: underline}
TD { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZE
: 9pt }
.p2 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 9pt; LINE-HEIGHT: 150% }
.p3 { FONT-FAMILY: "宋体", "Arial Narrow", "Times New Roman"; FONT-SIZ
E: 9pt; 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
("ISO8859_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes
("ISO8859_1"));
zt_time=new String(request.getParameter("zt_time").getBytes("IS
O8859_1"));
zt_author=new String(request.getParameter("zt_author").getBytes
("ISO8859_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
8859_1"));
lw_class2=new String(request.getParameter("lw_class2").getBytes("ISO
8859_1"));
lw_title=new String(request.getParameter("lw_title").getBytes("ISO88
59_1"));
lw_author=new String(request.getParameter("lw_author").getBytes("ISO
8859_1"));
pagetitle=new String(request.getParameter("
展开更多 50%)
分享

猜你喜欢

jsp留言板源代码三: 给jsp初学者.

Java JAVA基础
jsp留言板源代码三: 给jsp初学者.

jsp留言板源代码四: 给jsp初学者.

Java JAVA基础
jsp留言板源代码四: 给jsp初学者.

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

jsp留言板源代码一: 给jsp初学者.

Java JAVA基础
jsp留言板源代码一: 给jsp初学者.

jsp留言板源代码二: 给jsp初学者.

Java JAVA基础
jsp留言板源代码二: 给jsp初学者.

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

jsp入门:初学者对Spring框架的认识

Web开发
jsp入门:初学者对Spring框架的认识

初学者的留言簿

PHP
初学者的留言簿

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

《全民英雄》0元党的推塔配置

《全民英雄》0元党的推塔配置

《全民打怪兽》极限模式解析

《全民打怪兽》极限模式解析
下拉加载更多内容 ↓