开发环境 jdk1.4 myEclipse5.1 tomcat5.0 axis_1_2_1 使用axis 开发webServices还是比较方便快捷的 1.建立一个java类 提供webServices调用的方法 //以下方法提供不同的参数类型 及返回值类型 package test.rpc; import test.bean.Employee; public class JaxRpcService { //param:string return:string public String getEmployeeName(String employeeId){ Str ...
//test.Online public class Online implements HttpSessionListener{ public void sessionCreated(HttpSessionEvent arg0) { OnLineCount.raise(); } public void sessionDestroyed(HttpSessionEvent arg0) { OnLineCount.reduce(); } } public class OnLineCount { public static long onLineCount = ...
有时一个表单有很多文本框,多选框 下拉框只类的 如果一共有30个表单元素 那我们岂不是要在bean里面定义30个属性 及其get set 方法? 有没什么方法无需定义属性及其get set方法呢 有! //bean 里面的代代码 public static final String PARAM_PREFIX = "parameter."; private Map parameter; private Map createParameterMap(String paramPrefix){ Map result = new HashMap(); HttpServletRequest ...
定义: 将两个不兼容的类纠合在一起使用,属于结构型模式,需要有Adaptee(被适配者)和Adaptor(适配器)两个身份 适用范围: 一般是需要复用两个或两个以上的类或接口中的某些方法. package test; import java.util.List; public class Client { public int getClienCount(){ return 1000; } /** * * orther month ..... * */ } package test; import java.util.List; ...
大力水手
搜索本博客
最近加入圈子
最新评论