- 博客(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 869
原创 用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 1280
原创 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 1105
原创 tiles和struts初步应用
1,定义配置文件: 2,配置web.xml: action org.apache.struts.tiles.ActionComponentServlet definitions-config /WEB-INF/tileDefinitions.xml ...
2004-08-09 14:54:00 848
原创 servlet的2种重定向方法
在servlet/JSP编程中,服务器端重定向可以通过下面两个方法来实现:1,运用javax.servlet.RequestDispatcher接口的forward方法,2,或者运用javax.servlet.http.HttpServletResponse接口的sendRedirect方法。要运用RequestDispatcher接口的forward方法,首先要得到一个Request
2004-08-05 14:15:00 1854 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 1500
原创 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 943
原创 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 1393
原创 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 828
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人