- 博客(4)
- 收藏
- 关注
原创 Struts2中ActionError与ActionMessage的互转,解决不同action不同页面的跳转问题
在工作中碰到一个action跳转的问题: 在Test1Action中有如下result @Result(name="SUCCESS",location="test2",type="chain") 在Test1Action 的a1方法中有 this.addActionError 如果不做处理,在跳转到Test2Action时,因为存在actionError...
2012-09-26 21:29:04 119
原创 Java 动态加载jar包(转)
本文转自:http://www.cnblogs.com/piaolingxue/archive/2011/09/07/2169543.html 使用概要: File file = new File(jar文件全路径); URL url = file.toURL(); URLClassLoader loader = new ...
2012-09-17 16:41:24 242
原创 ant 条件判断 condition(转)
本文转自:http://www.51testing.com/?uid-350678-action-viewspace-itemid-809501 用ant写个build.xml,用到condition,作笔记如下: basic elements: istrue isfalse not and or xor available isset equals filesmatch 1...
2012-09-17 16:36:31 121
原创 Java运行命令行并获取返回值(转)
本文转自:http://blog.csdn.net/chenzhanhai/article/details/7621655 方法一//Process p = Runtime.getRuntime().exec("ping 127.0.0.1 -t"); Process p = Runtime.getRuntime().exec("javac"); InputStream is...
2012-09-17 15:58:27 211
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人