- 博客(23)
- 收藏
- 关注
转载 JAVA调用WebService
1.URL Connection方式(将SOAPUI中请求的xml内容复制到程序里)public void ebossInterface(){String customno = super.getRequest().getParameter("customno");SpDicCustominfo sc = new SpDicCustominfo();try {URL wsUrl
2016-09-13 11:58:29 413
原创 EasyUI常用技能整理
1.combobox是否允许编辑:$('#Id').combobox('enable'); //可用$('#Id').combobox('disable'); //不可用
2016-09-07 13:47:03 581
转载 ORACLE解决锁表问题
下面3个语句是我经常使用来解决oracle锁问题的 -- 注意你的用户有没有权限问题1. 查看被锁的表SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username, b.os_user_name FROM v$process p, v$session a, v$locked_o
2014-12-19 11:10:26 412
转载 ORACLE解决被锁表
下面3个语句是我经常使用来解决oracle锁问题的 -- 注意你的用户有没有权限问题1. 查看被锁的表SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username, b.os_user_name FROM v$process p, v$session a, v$locked_o
2014-12-19 11:07:44 516
转载 JS获取项目根路径
function getRootPath() { //获取当前网址,如: http://localhost:8080/ems/Pages/Basic/Person.jsp var curWwwPath = window.document.location.href; //获取主机地址之后的目录,如: /ems/Pages/Basic/Person.jsp
2014-11-17 11:56:21 580
转载 JS获取项目根路径
//js获取项目根路径,如: http://localhost:8080/emsfunction getRootPath() { //获取当前网址,如: http://localhost:8080/ems/Pages/Basic/Person.jsp var curWwwPath = window.document.location.href; //获取主机地
2014-11-17 11:54:47 591
原创 Window.showModelDialog
var userinfo = window.showModalDialog("${pageContext.request.contextPath}/jsp/config/userinfo/userMain.jsp","window","dialogHeight:600px; dialogWidth:1000px; edge:Raised; center:Yes; help:No; resizabl
2014-11-05 09:47:51 451
原创 关于Window.showModelDialog
var userinfo = window.showModalDialog("${pageContext.request.contextPath}/jsp/config/userinfo/userMain.jsp","window","dialogHeight:600px; dialogWidth:1000px; edge:Raised; center:Yes; help:No; resizabl
2014-11-05 09:46:04 516
原创 Java JSP页面导出Excel
JSP中://单击"导出"按钮时 function exportData(){ var dispNo=$("#dispNo").val(); var dispName=$("#dispName").val(); var inWh=$("#inWh").val(); var outWh=$("#outWh").val(); var b
2014-11-04 16:44:49 687
原创 out
/** * 初始化方法 * @throws IOException */ public void init(){ response=ServletActionContext.getResponse(); response.setContentType("text/html"); response.setCharacterEncoding("UTF
2014-09-02 10:09:27 373
转载 Java中获取完整的URL
Java中获得完整的URl字符串 [java] view plaincopyprint?HttpServletRequest httpRequest=(HttpServletRequest)request; String strBackUrl = "http://" + request.getServerName() //服务器地址
2014-09-02 09:22:41 465
转载 sturts2文件上传功能
http://www.cnblogs.com/linjiqin/archive/2011/03/21/1990674.html
2014-08-24 18:59:12 505
原创 struts2 action返回json格式
action方法:private JSONArray json ; /** * 根据人员名称查询车位信息 * @return * @throws IOException * @throws UnsupportedEncodingException */ public void selectParkingLotByName() throws SQLEx
2014-08-23 13:10:40 453
原创 为数据库表增加唯一索引
alter table DLTC.dbo.t_CarPark add constraint AK_ParkNumber --约束名 unique (ParkNumber) -- 列名
2014-08-23 11:32:15 1658
原创 Ibatis查询报错:net.sf.cglib.beans.BulkBeanException异常
请仔细检查实体类中的字段类型,要将其改为封装类型,float->Floa
2014-08-06 14:16:30 567
原创 Ibatis中queryforList传入多个参数的方法
一般情况下,我们用ibatis都是传入一个参数,这个参数可以为一个类,一个字符串,一个整型等等,例如: select pwd from userinfo where userid=#userid# 在方法体里可以用:password = (String)sqlMapClient.queryForObject("selec
2014-08-04 17:42:07 4704
原创 JSP二级联动菜单
JSP页面: function changeDepart(){ var zoneNumber=$("#zoneSelect").val(); var url="${pageContext.request.contextPath}/basic/dustbin/dustbin_selectDepartByZone.action";
2014-08-04 16:44:18 1320
转载 JSP页面向后台传递数据乱码问题解决方案
前台jsp中:var groupBuyerName = document.getElementById('groupBuyerName').value;groupBuyerName = encodeURI(encodeURI(groupBuyerName));后台java类中:String groupBuyerName = request.getParameter("groupBu
2014-08-04 10:18:34 753
转载 Oracle修改带数据的字段类型
将要更改类型的字段名改名以备份,然后添加一个与要更改类型的字段名同名的字段(原字段已经改名),然后更新数据,最后删除改名备份的字段。 以下操作在 Oracle 10.2.0.1.0 中通过。/*修改原字段名*/ALTER TABLE 表名 RENAME COLUMN 字段名 TO 字段名1;/*添加一个和原字段同名的字段*/ALTER TABLE 表名 ADD 字段名
2014-07-18 08:57:26 741
原创 Android中Spinner的用法
package cn.com.wewell.spinner;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.AdapterVi
2014-07-14 12:13:05 568
原创 SpringMVC自动登录功能
index.jspString path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";response.sendRedirect(basePath+"easyt
2014-06-30 10:38:27 3328 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人