Package com.quickwebframework.viewrender.jsp.servlet

Examples of com.quickwebframework.viewrender.jsp.servlet.PluginJspDispatchServlet


    String path = tmpArray[1];
    // 对视图名称进行处理(添加前后缀)
    // path = this.getViewNamePrefix() + path + this.getViewNameSuffix();
    request.setAttribute(WebContext.CONST_PATH_NAME, path);

    PluginJspDispatchServlet pluginJspDispatchServlet = pluginNameServletMap
        .get(pluginName);
    if (pluginJspDispatchServlet == null) {
      Bundle bundle = OsgiContext.getBundleByName(pluginName);
      pluginJspDispatchServlet = createNewPluginJspDispatchServlet(bundle);
      pluginNameServletMap.put(pluginName, pluginJspDispatchServlet);
    }
    try {
      pluginJspDispatchServlet.service(request, response);
    } catch (Exception ex) {
      throw new RuntimeException(ex);
    }
  }
View Full Code Here


    }
  }

  private PluginJspDispatchServlet createNewPluginJspDispatchServlet(
      Bundle bundle) {
    PluginJspDispatchServlet servlet = new PluginJspDispatchServlet(bundle);
    final String bundleName = bundle.getSymbolicName();
    try {
      servlet.init(new ServletConfig() {

        public String getServletName() {
          return bundleName;
        }
View Full Code Here

TOP

Related Classes of com.quickwebframework.viewrender.jsp.servlet.PluginJspDispatchServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.