摘要: 最近,为了让cvs 能够集成在协同开发平台上,所以要安装cvs 进行测试,没想到在配置过程中,添加用户时出现错误:cvs [server aborted]:"passwd" requires write access to the repository. 这个错误困扰了我两天,现在终于把它搞定了,在这记录一下配置过程. 配置如下: 操作系统:window xp 版本:cvsnt-2.5.03.2382.msi 安装目录:E:\CVSNT window xp 系统的登陆账号:test 密码:******一、先安装cvsnt-2.5.03.2382.msi二、安装完后打开:开始--》程序--》CV 阅读全文
posted @ 2011-01-05 10:02 小粒 阅读(724) 评论(0) 推荐(0) 编辑
摘要: public int getKeyIdByFId(String table,int caseID){int key=0;try {super.openConn();String sqlString="select * from ";if(table=="client"){sqlString+=" client";}else if(table=="othergoods") {sqlString+=" othergoods";}else if(table=="otherthings") {sqlString+=" otherthings";}//else if(table=="writ") {// 阅读全文
posted @ 2010-12-12 21:32 小粒 阅读(825) 评论(0) 推荐(0) 编辑
摘要: public String getTime(String time,String str){String timeString = "";String nian = time.substring(0, 4); String yue = time.substring(5,7); String ri = time.substring(8, 10); String shi = time.substring(11,13); String fen = time.substring(14, 16);if(str=="年月日"){timeString = nian+"年"+yue+"月"+ri+"日";}e 阅读全文
posted @ 2010-12-11 11:21 小粒 阅读(335) 评论(0) 推荐(0) 编辑
摘要: public int getCnIdByCaseId(int caseId,int writId){int id=0;try{super.openConn();String sql = " select cn_id from correctnotice where caseID =" + caseId + " and writID =" + writId;pStatement = connection.prepareStatement(sql);set = pStatement.executeQuery();if(set.next()){id = set.getInt(1);}}catch ( 阅读全文
posted @ 2010-12-10 22:24 小粒 阅读(234) 评论(0) 推荐(0) 编辑
摘要: //获取最新的CaseIDpublic int getNewCaseID(){int id=0;try {super.openConn();String sqlString="select max(caseid) from cases";pStatement=connection.prepareStatement(sqlString);set=pStatement.executeQuery();if(set.next()){id=set.getInt(1);}} catch (Exception e) {// TODO: handle exceptione.printStackTrace(); 阅读全文
posted @ 2010-12-10 22:00 小粒 阅读(642) 评论(0) 推荐(0) 编辑
摘要: js验证表单大全1. 长度限制scriptfunction test() {if(document.a.b.value.length50){alert("不能超过50个字符!");document.a.b.focus();return false;}}/scriptform name=a onsubmit="return test()"textarea name="b" cols="40" wrap="VIRTUAL" rows="6"/textareainput type="submit" name="Submit" value="check"/form 2. 阅读全文
posted @ 2010-12-10 21:54 小粒 阅读(14831) 评论(3) 推荐(3) 编辑
摘要: 路政项目中用法%Organinfo organinfo= (Organinfo)session.getAttribute("organinfo");organinfo.getOid();%html:select property="officersinfo.oname" style="width:150px"html:optionsCollection name="onamelist" label="oname" value="oid"//html:selecthtml:select标签的用法html:select property="theChoice" html: 阅读全文
posted @ 2010-12-10 21:51 小粒 阅读(16239) 评论(0) 推荐(0) 编辑
摘要: //根据自定义参数名称查询自定义值,并把查到的自定义值转换成一个List对象public List getPvalueListByPname(String pnameString){List valueList=new ArrayList();String valueString="";try{super.openConn();String sql = "select pvalue from parameterinfo where pname=?";pStatement = connection.prepareStatement(sql);pStatement.setString(1, pna 阅读全文
posted @ 2010-12-10 21:47 小粒 阅读(482) 评论(0) 推荐(0) 编辑
摘要: Cannot find class [org.apache.commons.dbcp.BasicDataSource]<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver... 阅读全文
posted @ 2010-11-30 19:46 小粒 阅读(8527) 评论(1) 推荐(1) 编辑
摘要: org.hibernate.MappingException: Unknown entity: java.lang.Class 问题解决了! 阅读全文
posted @ 2010-11-30 19:42 小粒 阅读(2843) 评论(0) 推荐(0) 编辑