共 45 篇文章 |
|
ajaxanywhere 总结:1,简介。解决方法很简单,把所有需要ajaxanywhere的servlet mapping配置成一个比较特殊的后缀,例如localServlet.aj这样在web.xml中配置AjaxAnywhere过滤器的filer-mapping 增加一条 <filter-mapping> <filter-name>AjaxAnywhere</filter-name> <url-pattern>*.aj</url-pat... 阅1 转自种子张 公众公开 13-07-25 08:58 |
(也就是说不要改写struts.properties!) --> <constant name="struts.custom.properties" value="application,org/apache/struts2/extension/custom" /> <!-- 指定请求url与action映射器,默认为org.apache.struts2.dispatcher.mapper.DefaultActionMapper --> &l... 阅406 转6 评0 公众公开 13-03-06 11:21 |
/*** * 本系统的所有activity父接口,实现activity初始化和Ui更新 * @author Scherrer * */public interface IMActivity { public abstract void init(); public abstract void refresh(Object ...param);} 阅2171 转2 评0 公众公开 13-03-04 13:13 |
= null) { DataOutputStream dos = new DataOutputStream(con.getOutputStream());= -1) { DataInputStream dis = new DataInputStream(con.getInputStream());responseData = new byte[length];= null) { con.disconnect(); 阅1485 转6 评0 公众公开 13-02-19 17:33 |
Ubuntu 解压缩zip文件乱码问题解决方案PS: 一直很困扰与Ubuntu下解压zip乱码问题,虽然解压后不影响文件的正常使用,但看着各种字符的文件名心里就各种不爽。其实,并不是所有zip文件解压后都是乱码的,只有windows下压缩的zip在ubuntu中会出现这种情况。其实就是windows和ubuntu下压缩的编码格式不同。命令: sudo apt-get install convmv p7... 阅1299 转1 评0 公众公开 13-02-19 09:57 |
Ubuntu下不能识别android设备的解决方案。PS: 最近调试程序,由于某种原因,换了一台android设备,Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub... ...vim /etc/udev/rules.d/51-android.rules.sudo chmod a+rx /etc/udev/rules.d/51-android.rulessudo /... 阅1320 转5 评0 公众公开 13-02-19 08:55 |
<service android:name="TestService" android:process=":remote" > <intent-filter> <action android:name="com.bravewly.ITestService" /> </intent-filter> </service><service android:name="TestService" android:process... 阅581 转1 评0 公众公开 13-02-19 08:54 |
android 源码 学习之notepad(不断更新ing)通过之前两天对notepad的分析,大致了解到:1. notepad源码大概有2200行(只是src下的)2. 总共有一个包,六个java文件。1) NoteList.java.onPrepareOptionsMenu() --> 在菜单显示之前被调用,然后更新主菜单。2) NoteEditor.java.onCreate() --> 根据action执行相应的操作,显示相应的内容。3... 阅318 转1 评0 公众公开 13-02-19 08:53 |
关于android中xml下icon的引用。在android的manifest.xml中关于可以引用icon的标签以及作用范围有:1. application 作用于整个应用的icon,包括启动的icon,以及每一个acitivity的icon。2. activity 这里值得一提的是 category 是launcher的activity,即<category android:name="android.intent.category.LAUNCHER" /> ,它... 阅445 转0 评0 公众公开 13-02-19 08:51 |
阅3914 转18 评0 公众公开 13-02-19 08:48 |