资源简介
完整jsp 聊天室系统jsp 聊天室系统jsp 聊天室系统jsp 聊天室系统

代码片段和文件信息
/*
* Created on 2004-9-18
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.bwm.string;
import java.io.UnsupportedEncodingException;
/**
*class explain:String deal with
*set up name: crazyadept
*set up time: 11/25/2004
*/
public class Str {
/**
*method explain:initialization Str
*set up name: crazyadept
*set up time: 11/25/2004
*/
public Str() {
}
/**
*return : GB2312
*parameter: iso-8859-1
*set up name: crazyadept
*change time: 11/25/2004
*/
public String toChinese(String str){
if(str==null||str.length()<1){
str=““;
}else{
try {
str=(new String(str.getBytes(“iso-8859-1“)“GB2312“));
} catch (UnsupportedEncodingException e) {
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/**
*return : it‘s not have “‘“
*parameter: it‘s have “‘“
*set up name: crazyadept
*change time: 11/25/2004
*/
public String dbEncode(String str){
if(str==null){
str=““;
}else{
try{
str=str.replace(‘\‘‘(char)1).trim();
}catch(Exception e){
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/**
*return : it‘s have “ ‘ “
*parameter: it‘s not have “ ‘ “
*set up name: crazyadept
*change time: 11/25/2004
*/
public String dbDecode(String str){
if(str==null){
str=““;
}else{
try{
str=str.replace((char)1‘\‘‘).trim();
}catch(Exception e){
System.err.print(e.getMessage());
e.printStackTrace();
return str;
}
}
return str;
}
/***************************************************
*return : it‘s have “><“
*parameter: it‘s have “<>“
*set up name: crazyadept
*change time: 11/30/2004
****************************************************/
public String htmlEncode(String str){
str=this.replace(str“>““>“);
str=this.replace(str“<““<“);
return str;
}
/***************************************************
*return : include str2
*parameter: include str1
*set up name: crazyadept
*change time: 11/30/2004
****************************************************/
public String replace(String strString str1String str2){
String str3=““;
if(str.indexOf(str1)==-1){
return str;
}else{
int ij;
for(i=0;(j=str.indexOf(str1i))!=-1;i=j+str1.length()){
str3=str3+str.substring(ij);
str3=str3+str2;
}
str3=str3+str.substring(istr.length());
return str3;
}
}
/***************************************************
*return : get data type
*parameter: data type
*set up name: crazyadept
*change time: 12/01/2004
****************************************************/
public Stri
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5308 2007-03-17 13:56 liaotian\bottom.jsp
文件 889 2007-03-17 13:56 liaotian\chat.jsp
文件 1179648 2007-03-17 13:56 liaotian\databa
文件 1048576 2007-03-17 13:56 liaotian\databa
目录 0 2011-04-21 12:00 liaotian\databa
文件 30609 2007-03-17 13:56 liaotian\images\liaotian.gif
..A.SH. 3072 2010-12-15 09:23 liaotian\images\Thumbs.db
目录 0 2011-04-21 12:00 liaotian\images
文件 486 2007-03-17 13:56 liaotian\include.inc
文件 1082 2007-03-17 13:56 liaotian\leave.jsp
文件 627 2007-03-17 13:56 liaotian\login.html
文件 2203 2007-03-17 13:56 liaotian\login.jsp
文件 3545 2007-03-17 13:56 liaotian\main.jsp
文件 1387 2007-03-17 13:56 liaotian\right.jsp
文件 1812 2007-03-17 13:56 liaotian\st
文件 125 2007-03-17 13:56 liaotian\top.jsp
文件 1801 2007-03-17 13:56 liaotian\WEB-INF\classes\com\bwm\login\login.class
文件 508 2007-03-17 13:56 liaotian\WEB-INF\classes\com\bwm\login\user.class
目录 0 2011-04-21 12:00 liaotian\WEB-INF\classes\com\bwm\login
文件 2029 2007-03-17 13:56 liaotian\WEB-INF\classes\com\bwm\string\Str.class
目录 0 2011-04-21 12:00 liaotian\WEB-INF\classes\com\bwm\string
目录 0 2011-04-21 12:00 liaotian\WEB-INF\classes\com\bwm
目录 0 2011-04-21 12:00 liaotian\WEB-INF\classes\com
文件 3275 2007-03-17 13:56 liaotian\WEB-INF\classes\Str.java
目录 0 2011-04-21 12:03 liaotian\WEB-INF\classes
文件 217 2007-03-17 13:56 liaotian\WEB-INF\web.xm
目录 0 2011-04-21 12:00 liaotian\WEB-INF
文件 851 2007-03-17 13:56 liaotian\zhuce.html
文件 2008 2007-03-17 13:56 liaotian\zhuce.jsp
目录 0 2011-04-21 12:00 liaotian
............此处省略3个文件信息
相关资源
- JSP+MYSQL旅行社管理信息系统
- JSP,SQL,MVC的选课系统
- 基于JSP的学生宿舍管理系统(源码 数
- JSP选课管理系统
- mysql jsp网站源码下载
- JSP做的化妆品商城
- Jsp购物车实例
- 基于JSP的校友信息管理系统(添加数
- 基于jsp的bbs论坛 非常详细
- jsp oracle通讯录
- JSP学生信息管理系统 Mysql数据库
- 使用jsp servlet做的投票系统
- JSP登陆验证 实现JSP用户名 密码 验
- jsp基于servlet 图书馆管理系统
- jsp学生成绩管理系统.rar
- 在线考试系统源代码(jsp)
- 超级好的纯jsp写的聊天室
- JSP 网上购物网页项目
- JSP+mysql新闻发布系统.rar
- jsp 学生信息管理系统设计与实现
- jsp与SQL Server数据库实现的客户注册登
- 简易教学管理系统(jsp spring struts h
- 学生信息管理系统 JSP MySQL
- jsp ajax 三级联动菜单
- jsp新闻公告与最新消息系统(具备添
- JSP课程设计-留言本 jsp mysql tomcat实现
- jsp 做的 班级管理网站
- jsp 统计在线人数利用HttpSessionListene
- jsp mysql tomcat学生信息管理系统
- jsp成绩管理系统jsp servlet javabean
评论
共有 条评论