2009 年文章归档
共 5 篇文章
类iGoogle实现参考资料
http://yesir.iteye.com/blog/275178 http://uwa.qooyee.com/ http://dropthings.omaralzabir.com/ www.codeplex.com/dropthings
2009-12-14 14:15
解析跟创建XML片段(DOM4J)
今天有用到xml,突然一下发现不怎么记得dom4j的api了,以前一个项目都是什么XML RPC架起来的! 记下几片代码给自己提个醒: 解析xml: Document doc=DocumentHelper.parseText(xml); Element rootEle=doc.getRootElement(); ...... 创建xml: Document doc=DocumentHelper.createDocument(); Element rootEle=DocumentHelper.createElement("input-parameters"); System.out.print…
2009-05-04 22:44 · 代码片段
鄙视Tomcat
一个使用apache的Axis发布了WebService的Web应用欲部署到Tomcat上去,竟然有这种莫名其妙的错误信息: 信息: The listener "org.apache.axis.transport.http.AxisHTTPSessionListener" is already configured for this context. The duplicate definition has been ignored. 言下之意说AxisHTTPSessionListener已经配置过了,已经被忽略后面紧接着 严重: Error configuring application…
2009-05-03 17:40 · 有感而发
使用Axis创建WebService
1.第一步创建一个web工程,把下载的axis中的lib全部放到myproject/WEB-INF/lib中, 搞一个server-config.wsdd的文件到myproject/WEB-INF/下(网上下载,论坛复制,怎么样都成),还需在myproject/WEB-INF/web.xml文件中配置哈axis,具体内容可以从down下来的axis的webapps中原样复制过来 2.编写deploy.wsdd文件,内容格式如: 3.在已经安装axis的前提下(最简单的方法就是把下载来的axis中lib目录下的所有jar放到%JAVA_HOME%\jre\lib\ext下,执行下面命令就不要那…
2009-04-30 23:54 · 代码片段
Java调用Oracle带结果集返回的存储过程
公司项目中强制使用存储过程,顺势学习下如何在程序中调用过程,借javaeye点地方保存点代码片段.......... 创建过程: --创建一张测试的表 create table t1(a number,b number ,c number,d number); --创建一个包定义游标类型 create or replace package types as type cursorType is ref cursor; end; --创建存储过程 create or replace procedure getemps( io_cursor in out types.cursorType) as…
2009-01-09 17:24 · 代码片段