导航

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 61 下一页

2014年4月22日

摘要: 因个人需要需要重新安装Drupal。如何操纵呢?Drupal是在_drupal_bootstrap_database()函数里面检查是否已经安装过的。检查的依据是有没有$GLOBALS['databases']设置,或者是有没有设置常量MAINTENANCE_MODE=install。functio... 阅读全文

posted @ 2014-04-22 12:02 eastson 阅读(1111) 评论(0) 推荐(0) 编辑

2014年4月17日

摘要: Bootstrap 3 Menu Generator 阅读全文

posted @ 2014-04-17 16:27 eastson 阅读(230) 评论(0) 推荐(0) 编辑

2014年4月4日

摘要: 这里仅限OSGi注册的Servlet,WebServer里面应该有所不同。http.registerServlet("/control/main", new ControlServlet(), null, null);http://localhost/control/mainServletPath=/control/mainContextPath=RequestURI=/control/mainRequestURL=http://localhost/control/mainPathInfo=nullhttp://localhost/control/main/ServletP 阅读全文

posted @ 2014-04-04 11:36 eastson 阅读(220) 评论(0) 推荐(0) 编辑

2014年3月26日

摘要: 方法一:实现ServiceListener接口:package org.riawork.demo.web;import org.osgi.framework.BundleActivator;import org.osgi.framework.BundleContext;import org.osgi.framework.ServiceEvent;import org.osgi.framework.ServiceListener;import org.osgi.framework.ServiceReference;import org.osgi.service.http.HttpService; 阅读全文

posted @ 2014-03-26 09:39 eastson 阅读(539) 评论(1) 推荐(0) 编辑

2014年3月21日

摘要: 将web容器置于OSGi框架下,其实就是将web容器做成OSGi支持的Bundle,再安装到OSGi框架中,这里使用的是Jetty容器。1、创建一个Eclipse插件项目,在此插件下创建一个WebRoot文件夹,里面创建两个文件夹一个是images,一个是pages,里面分别放置一个图片文件,一个简单的html页面和一个简单的jsp文件。大致目录结构如下图所示:2. index.jsp文件的内容如下: Insert title here 3、MANIFEST.MF文件的内容如下:Manifest-Version: 1.0Bundle-Manifest... 阅读全文

posted @ 2014-03-21 15:27 eastson 阅读(534) 评论(0) 推荐(0) 编辑

2014年3月19日

摘要: 这里是指用Eclipse调试Felix Framework自身。1. 首先安装Eclipse Java EE,然后再安装Java Source Attacher,这样才会在Jar文件的右键菜单“属性”中有“Java Source Attachement”选项。2. 下载Felix FrameworkDistribution,注意这里是二进制版本,也就是直接可以执行的版本,不是源码。3. 使用SVN客户端工具下载Felix的源码http://svn.apache.org/repos/asf/felix/releases,注意版本号要对应。需要下载的有这样几项:org.apache.felix.f 阅读全文

posted @ 2014-03-19 15:08 eastson 阅读(785) 评论(0) 推荐(0) 编辑

摘要: Java Source Attacher 1.2 是一款自动帮你附加源代码的Eclipse插件,相信很多Java Coder都有过手动附加源代码的经历,去网上搜索,然后下载下来,最后附加上,很麻烦,而且很费时间,现在Java Source Attacher 1.2就可以帮你很轻松的帮你自动搜索源代码,下载下来,然后附加上,很方面的说,看看怎么使用吧:1.需求 Requirements: JDK1.5+ Eclipse 3.5+2.安装方法 在线更新: URL:http://svn.codespot.com/a/eclipselabs.org/free-plugins/trun... 阅读全文

posted @ 2014-03-19 09:31 eastson 阅读(554) 评论(0) 推荐(0) 编辑

2014年3月17日

摘要: This is a blog series on how to combine Maven + Apache Felix + CXF + DOSGi. The information presented may not be correct and some parts can definitely be improved. Not all posts are published immediately, so stay tuned!Part 1Maven + Apache Felix: Easy Development and Debugging With EclipsePart 2Mave 阅读全文

posted @ 2014-03-17 15:02 eastson 阅读(344) 评论(1) 推荐(0) 编辑

2014年3月13日

摘要: 这是OFBiz实战系列的第一篇文件,该系列的目的是整合Groovy+FreeMaker开发一个图书管理系统,阐述在此过程中碰到的一系列问题,以及如何解决这些问题。第一篇文章说明如何使用Groovy+FreeMaker搭建基本的组件框架,并能够将数据从Groovy传到FreeMaker。|1. 在hot-deploy目录下创建组件library基本目录结构。2. 新建文件library/ofbiz-component.xml,编辑内容: 3. 新建文件library/webapp/library/WEB-INF/web.xml,编辑内容: Librar... 阅读全文

posted @ 2014-03-13 11:36 eastson 阅读(1431) 评论(0) 推荐(0) 编辑

2014年3月10日

摘要: 这里的doRequest()是指RequestHandler中的同名函数:public void doRequest(HttpServletRequest request, HttpServletResponse response, String chain, GenericValue userLogin, Delegator delegator) throws RequestHandlerException { ... }下面以http://localhost:8080/practice/control/main?foo=xxx&bar=yyy为例演示说明一下整个doR... 阅读全文

posted @ 2014-03-10 15:27 eastson 阅读(3056) 评论(0) 推荐(0) 编辑

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 61 下一页