Package org.eclipse.equinox.jsp.jasper

Examples of org.eclipse.equinox.jsp.jasper.JspServlet


                    new BundleEntryHttpContext(context.getBundle(), "/web");
            httpService.registerResources("/jsp-examples", "/",
                                          commonContext);

            Servlet adaptedJspServlet = new ContextPathServletAdaptor(
                    new JspServlet(context.getBundle(), "/web"),
                    "/jsp-examples");
            httpService.registerServlet("/jsp-examples/*.jsp", adaptedJspServlet, null,
                                        commonContext);
        } catch (Exception e) {
            // TODO Auto-generated catch block
View Full Code Here


                HttpContext commonContext =
                        new DefaultComponentEntryHttpContext(bundleContext.getBundle(), INTERNAL_CONTEXT);

                //register our .jsp files at the httpService
                Servlet servlet = new ContextPathServletAdaptor(
                        new JspServlet(bundleContext.getBundle(), "/web"), CONTEXT);
                httpService.registerResources(CONTEXT, "/", commonContext);
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
View Full Code Here

      final HttpService httpService = (HttpService) context.getService(reference);
      try {     
        HttpContext commonContext = new BundleEntryHttpContext(context.getBundle(), "/web");
        httpService.registerResources("/struts-examples", "/", commonContext); //$NON-NLS-1$ //$NON-NLS-2$
       
        Servlet adaptedJspServlet = new ContextPathServletAdaptor(new JspServlet(context.getBundle(), "/web"), "/struts-examples"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        httpService.registerServlet("/struts-examples/*.jsp", adaptedJspServlet, null, commonContext); //$NON-NLS-1$
       
        Dictionary initparams = new Hashtable();
        initparams.put("servlet-name", "action"); //Note: requires servlet-name support in Http Service Implementation
        initparams.put("config", "/WEB-INF/struts-config.xml");
View Full Code Here

                        new BundleEntryHttpContext(context.getBundle(), "/web"); //$NON-NLS-1$
                httpService.registerResources("/jstl-examples", "/",
                                              commonContext); //$NON-NLS-1$ //$NON-NLS-2$

                Servlet adaptedJspServlet = new ContextPathServletAdaptor(
                        new JspServlet(context.getBundle(), "/web"),
                        "/jstl-examples")//$NON-NLS-1$//$NON-NLS-2$
                httpService.registerServlet("/jstl-examples/*.jsp", adaptedJspServlet, null,
                                            commonContext); //$NON-NLS-1$
            } catch (Exception e) {
                // TODO Auto-generated catch block
View Full Code Here

                HttpContext commonContext =
                        new DefaultComponentEntryHttpContext(bundleContext.getBundle(), INTERNAL_CONTEXT);

                //register our .jsp files at the httpService
                Servlet servlet = new ContextPathServletAdaptor(
                        new JspServlet(bundleContext.getBundle(), "/web"), CONTEXT);
                httpService.registerResources(CONTEXT, "/", commonContext);
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
View Full Code Here

    if (alias != null && alias.indexOf("/*.") == alias.lastIndexOf('/')) { //$NON-NLS-1$
      alias = alias.substring(0, alias.lastIndexOf('/'));
      if (alias.length() == 0)
        alias = "/"; //$NON-NLS-1$
    }
    return new JspServlet(b, bundleResourcePath, alias);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.equinox.jsp.jasper.JspServlet

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.