jspsmartupload对于中文支持存在着很多问题,一步一步解决后部署到tomcat竟然又出现乱码,很让人崩溃。上传文件的中文字符存在乱码,数据库中存储的也是乱码。试了好多方法,终于找到一个奏效的,在catalina.bat中添加一行set CATALINA_OPTS=-Dfile.encoding=UTF-8。重启之后,中文附件可以上传。 Read More
posted @ 2011-06-01 17:30 gistone Views(412) Comments(0) Diggs(0)
解决方法:D:\Program Files\ArcGIS\Bin\AppLockMgr.exe exe扩展名改为rrg,重新打开arcmap就可以了。AppLockMgr.rrg:The AppLockMgr coclass is used to control locks on shapefiles and coverages, so no two users can make changes to the same dataset. It is pretty much the same idea as with relational database抯 lock to prevent mu Read More
posted @ 2011-04-17 17:06 gistone Views(1501) Comments(0) Diggs(0)
WSDL(网络服务描述语言 Web Services Description Language)是一门基于XML的语言,用于描述Web Services 以及如何对它们进行访问。WSDL文档描述元素:<portType> 执行的操作<message> 使用的消息<types> 使用的数据类型<binding> 使用的通信协议 下面是一个 WSDL 文... Read More
posted @ 2010-08-19 16:53 gistone Views(410) Comments(0) Diggs(0)
看英文文档,总是看得慢忘得快,看完一篇刚有点感觉,回头再接着深入,复习前面的时候发现已经是比较模糊了,还是要重头看起,边看边整理,不需要逐一翻译,只对内容做个总结,也许是一个不错的办法。下面是前段时间关于阅读geoserver时的一些简译。Services GeoServer数据服务采用标准的OGC数据协议,wfs提供矢量数据服务,WMS提供地图数据服务,WCS提供栅格数据服务。WFS basic... Read More
posted @ 2010-08-15 14:35 gistone Views(1635) Comments(0) Diggs(0)
前几天一个客户让我帮他手动编写一个java web程序,由于一直习惯于依赖开发平台生成基于不同框架下的web程序,让我手动编写,一时竟然有点懵了。写着javaee程序,竟然写不出一个简单的Servlet程序。呵,弄的挺没面子。我想这也暴露了自身基础不够扎实,对于java web程序理解的不够深刻,在此做个总结,动手写一个Servlet程序。 首先,编写一个简单的Servlet类:ConfigTes... Read More
posted @ 2010-08-07 10:04 gistone Views(5931) Comments(0) Diggs(0)
以一个登陆和登出为例,控制panel的状态。代码说明: Panel的includeIn属性:设置Panel所属的状态,它还有一个属性:excludeFrom,表示不属于的状态,多个用逗号隔开。 Panel的click=”currentState=’login’”属性表示,单击触发currentState事件,事件将Panel的状态切换到login状态... Read More
posted @ 2010-08-02 13:53 gistone Views(404) Comments(0) Diggs(0)
HttpService是Flex提供远程数据访问和加载的方式之一,使用起来相对简单,基于HTTP协议发送POST和GET请求外部数据,然后通过指定的监听来处理响应。下面是HttpService简单代码示例:代码 以上代码实现一个空表单,将一个xml数据文件通过下拉列表选取,将数据绑定到相应的表单项中。 在代码中添加了一个HttpService标签,url指向了一个xml文档,同时添加了"branc... Read More
posted @ 2010-07-21 15:43 gistone Views(792) Comments(0) Diggs(0)
定义:The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. (装饰者模式可以动态地给一个对象增加其他职责。就扩展... Read More
posted @ 2010-07-10 17:00 gistone Views(248) Comments(0) Diggs(0)
定义:The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically. (观察者模式定义了对象间的一种一对多依赖关系,使得每... Read More
posted @ 2010-06-29 11:28 gistone Views(236) Comments(0) Diggs(0)
策略模式 定义: Identify the aspects of your application that vary and separate them from what stays the same.(找到系统中变化的部分,将变化的部分同其它稳定的部分隔开。) 针对问题:同一个父类的子类之间有着不同的行为,一般的方式我们会在父类中定义抽象方法,在子类中重写该方法。然而在具体的应用中,可能有些... Read More
posted @ 2010-06-22 16:45 gistone Views(286) Comments(0) Diggs(0)