自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 po->vo的转化

Collection subject_c = new ArrayList(); _session = SessonManager.getSession();    String ids = request.getParameter("id");        Iterator it = _session.iterate("from subject in class com.shm.apply.be

2005-01-20 17:15:00 846

原创 用SELECT和LOAD倒入数据

select name,id,sale_phone,address,jiaotong,REPLACE(REPLACE(SUBSTRING(comment,1,500),/r/n,),",),web_url,sold_ratio,kaipan_time,price_average,developer INTO OUTFILE /home/david/house.txt FIELD

2005-01-06 17:06:00 1257

原创 Mysql中左连接的使用

查询在一个相关的表中不存在的数据,如用户表(user)和用户资料表(user_profile),通过id关联,要查出user表中在user_profile中不存在的记录:select count(*) from?user left join?user_profile On user.id=user_profile.id where user_profile.id is null复杂条件:

2004-08-25 16:43:00 1084

原创 tiles和struts初步应用

1,定义配置文件:                                2,配置web.xml:    action    org.apache.struts.tiles.ActionComponentServlet            definitions-config        /WEB-INF/tileDefinitions.xml        ...  

2004-08-09 14:54:00 838

原创 servlet的2种重定向方法

在servlet/JSP编程中,服务器端重定向可以通过下面两个方法来实现:1,运用javax.servlet.RequestDispatcher接口的forward方法,2,或者运用javax.servlet.http.HttpServletResponse接口的sendRedirect方法。要运用RequestDispatcher接口的forward方法,首先要得到一个Request

2004-08-05 14:15:00 1827 1

原创 log4j的配制及测试程序

1,写个初始化的SERVLET: package net.welovetennis.util.log; import javax.servlet.*;import javax.servlet.http.*;import org.apache.log4j.*; /** * Title:  * Description:  * Copyright: Copyright (c) 2004 * Compan

2004-07-31 16:50:00 1488

原创 servlet生命周期

The life cycle of a servlet is controlled by the container in which the servlet has been deployed. When a request is mapped to a servlet, the container performs the following steps. If an instance o

2004-07-29 16:27:00 924

原创 Tomcat中通过JNDI配置访问数据库

1,所需要的jar文件:commons-pool.jar, commons-dbcp.jar 2,server.xml的配置:  type="javax.sql.DataSource"/>            factory     org.apache.commons.dbcp.BasicDataSourceFactory                      removeAbandone

2004-07-29 15:41:00 1373

原创 Struts国际化问题

1, 所有JSP用UTF-8编码。 2,JBuilder用ISO8859_1(其它的没试过) 3,native2ascii -encoding GB2312 a.txt ApplicationResources_zh.properties 4,IE的工具-->Internet选项-->语言,可以调试(需要重开IE窗口)  

2004-07-28 11:55:00 814

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除