`
文章列表
if(userNameEditText.isInTouchMode()){ userNameEditText.requestFocusFromTouch(); }else{ userNameEditText.requestFocus(); } 不理解这两个方法的意思,去看了下API。了解了: 首先,这两个方法都是获得焦点的方法。 其次,requestFocus()在两种情况下不能获得焦点: 1.对应的View不支持Focus 2.对应的View支持Focus,但是不支持在Touch模式下的Focus。 而requestFocusFromTouch( ...
格式一:  Oracle JDBC Thin using a ServiceName: jdbc:oracle:thin:@//<host>:<port>/<service_name> Example: jdbc:oracle:thin:@//172.0.0.1:1521/XE 注意这里的格式,@后面有//, 这是与使用SID的主要区别。 这种格式是Oracle 推荐的格式,因为对于集群来说,每个节点的SID 是不一样的,但是SERVICE_NAME 确可以包含所有节点。 格式二: Oracle JDBC Thin using an SID: ...
   今天遇到一个问题,就是从js中传递到后台的url中包含了一个特殊字符'+',在前台JS中是正确,但是通过服务器发送都后台时候,加号“+”却变成了空格“ ”.其实处理这个问题的方法很简单,就是把要传递的值加密即可。使用encodeURIComponent就能处理。   对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent      escape对0-255以外的unicode值进行编码时输出%u****格式,其它情况下escape,encodeURI ...
首先编写要发布的方法接口: @WebService public interface HelloWorld { public String sayHi(String name); } 接口此处必须添加@WebService 接口的实现类: @WebService(endpointInterface="com.hlt.cxf.ws.HelloWorld" ,serviceName="HelloWorldWs") public class HelloWorldWs implements HelloWorld{       @Override ...
jbpm4中taskService.completeTask(String taskId,Map<String,?>param)使用报错,研究半天终于明白了。 jpdl文件如下: <?xml version="1.0" encoding="UTF-8"?>   <process name="leave" xmlns="http://jbpm.org/4.3/jpdl">    <start g="162,14,48,48" name=&quo ...
    使用JQuery获取select标签中option的value:               var selectValue= $("#selectId option:selected").val();      根据某个值选中select中的对应option显示:               $("#selectId option[value='"+optionValue+"']").attr("selected","selected");  
  <context-param>的作用:web.xml的配置中<context-param>配置作用1. 启动一个WEB项目的时候,容器(如:Tomcat,JBoss)会去读它的配置文件web.xml.读两个节点: <listener></listener> 和 <context-param></context-param> 2.紧接着,容器创建一个ServletContext(上下文),这个WEB项目所有部分都将共享这个上下文. 3.容器将<context-param></context-pa ...
  1、比较常用 try{        Class.forName("com.mysql.jdbc.Driver");//加载数据库驱动        String url="jdbc:mysql://localhost:3306/databasename";//数据库连接子协议        Connection conn=DriverManager.getConnection(url,"username","password");        Statement stmt=conn.crea ...
Global site tag (gtag.js) - Google Analytics