好久没SQL了,看来脑子锈了,一个简单的SQL,也想了很久。   select * from tablename where fieldname in (select fieldname from tablename group by fieldname having count(fieldname)>1)  
自动重载的配置: 修改$tomcat_home/conf/server.xml文件,在host节点下 加入Context  例如: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="/test" docBase="test" debug="0" privileged="tru ...
2008-07-18

struts2入门配置

关键字: struts2
 今天写篇关于struts2入门的文章吧,struts2现在逐渐开始流行起来了,已有不少公司都采用struts2。 我的开发环境是MyEclipse5.5GA Enterprise Workbench+JDK1.5+tomcat6.0。首先到官方网站下载struts2,http://struts.apache.org/download.cgi#struts20111,选择Full Distribution: struts-2.0.11.2-all.zip (91mb) 下载后解压即可。 1、新建一个Web Project,将以下5个jar文件,放到WebRoot\WE ...
安装SVN插件 1、eclipse菜单栏 help->software updates-> Find and Install 2、选择search for new features to install -> Next 3、选择New Remote Site->输入如下:->OK       Name: Subclipse 1.4.x (Eclipse  3.2+)    URL:  http://subclipse.tigris.org/update_1.4.x&nbs ...
由于项目需要,要求实现在B/S下,与非接触卡读写机进行通讯。由于在B/S架构下程序一般放在服务器端,那么怎样来实现对客户端的硬件(读卡器)操作呢?我的解决思路是使用japplet本地dll文件(这个文件一般硬件开发商会提供)。要想用java调用dll必须使用JNI来调用。 public class JavaRD { public JavaRD() { } static { System.loadLibrary("RD"); } public native int dc_init(int lPort,int lBaud); public native s ...
public int delete(Long[] delId){ Session session = getSession(); Transaction tx = session.beginTransaction(); String hql = “delete IPInfo where id in ( :IPId) ” Query query = session.createQuery(hql); query.setParameterList("IPId",delId); in ...