Package org.springframework.web.context

Examples of org.springframework.web.context.WebApplicationContext


   */
  @Override
public final int doStartTag() throws JspException
    {
        request = (HttpServletRequest) pageContext.getRequest();
        WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
        frontPageService = (IFrontPageService) wac.getBean(BaseConstants.SERVICE_FRONT_PAGE);
        return EVAL_BODY_BUFFERED;
    }
View Full Code Here


   */
  @Override
  public final int doStartTag() throws JspException {
    request = (HttpServletRequest) pageContext.getRequest();

    WebApplicationContext wac = WebApplicationContextUtils
        .getWebApplicationContext(pageContext.getServletContext());
    memService = (IMemberService) wac
        .getBean(BaseConstants.SERVICE_MEMBER_LOOKUP);

    return EVAL_BODY_BUFFERED;
  }
View Full Code Here

   
    // This is where it was suppose to forward to in the first place.
    ActionForward forward = super.execute(ex, ae, mapping, form, request, response);
   
    ServletContext sCtx = request.getSession().getServletContext();
      WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(sCtx);
      IErrorLogService loggerService = (IErrorLogService) wac.getBean(BaseConstants.SERVICE_ERRORLOGGER_LOOKUP);
     
    String forwardKey = new String();
    Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");

    Throwable thr = (Throwable)request.getAttribute("javax.servlet.error.exception");
View Full Code Here

        SystemConfigConstants.DATE_FORMAT_JSP);
    getServletContext().setAttribute(
        BaseConstants.LOOKUP_DATE_TIME_FORMAT_PATTERN,
        SystemConfigConstants.DATE_TIME_FORMAT_JSP);

    WebApplicationContext wac = WebApplicationContextUtils
        .getWebApplicationContext(getServletContext());
    ISystemTaskService startupService = (ISystemTaskService) wac
        .getBean(BaseConstants.SERVICE_SYSTEM_TASK_LOOKUP);
    ISystemConfigService sysConfigService = (ISystemConfigService) wac
        .getBean(BaseConstants.SERVICE_SYSTEM_CONFIG);

    SystemConfigVO sysConfigVO = sysConfigService.getSystemConfig();
    getServletContext().setAttribute(BaseConstants.ORGANIZATION_NAME, sysConfigVO.getOrganizationName());
    getServletContext().setAttribute(BaseConstants.ORGANIZATION_SHORT_NAME, sysConfigVO.getOrganizationShortName());
View Full Code Here

   */
  public void execute(JobExecutionContext context)
      throws JobExecutionException {

        try{
                    WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
                    IMemberService memService = (IMemberService) wac.getBean(BaseConstants.SERVICE_MEMBER_LOOKUP)
                    ISystemConfigService sysConfigService = (ISystemConfigService) wac.getBean(BaseConstants.SERVICE_SYSTEM_CONFIG);
           
                    SystemConfigVO sysConfigVO = sysConfigService.getSystemConfig();
           
                    // This job simply prints out its job name and the
                    // date and time that it is running
View Full Code Here

     * @exception JspException
     * @return int
     */
    public final int doStartTag() throws JspException
    {
        WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
        xlatService = (IXlatService) wac.getBean(BaseConstants.SERVICE_XLAT_LOOKUP);
        memberService = (IMemberService) wac.getBean(BaseConstants.SERVICE_MEMBER_LOOKUP);
        systemConfigService = (ISystemConfigService) wac.getBean(BaseConstants.SERVICE_SYSTEM_CONFIG);

        return EVAL_BODY_BUFFERED;
    }
View Full Code Here

   */
  @Override
public final int doStartTag() throws JspException
    {
        request = (HttpServletRequest) pageContext.getRequest();
        WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
        systemConfigService = (ISystemConfigService) wac.getBean(BaseConstants.SERVICE_SYSTEM_CONFIG);
        return EVAL_BODY_BUFFERED;
    }
View Full Code Here

   */
  @Override
public final int doStartTag() throws JspException
    {
        request = (HttpServletRequest) pageContext.getRequest();
        WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
        systemConfigService = (ISystemConfigService) wac.getBean(BaseConstants.SERVICE_SYSTEM_CONFIG);
        return EVAL_BODY_BUFFERED;
    }
View Full Code Here

                            {
                                resources.getLogger().info(
                                        String.format("Starting Spring (version %s)", SpringVersion
                                                .getVersion()));

                                WebApplicationContext context = loader
                                        .initWebApplicationContext(servletContext);

                                shutdownHub.addRegistryShutdownListener(shutdownListener);

                                applicationContextCreated.set(true);
View Full Code Here

    public void contextInitialized(ServletContextEvent event) {
        LOG.info("Starting up Pluto Portal Driver. . .");

        ServletContext servletContext = event.getServletContext();

        WebApplicationContext springContext = (WebApplicationContext)
                servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);

        LOG.debug(" [1a] Loading DriverConfiguration. . . ");
        DriverConfiguration driverConfiguration = (DriverConfiguration)
                springContext.getBean("DriverConfiguration");

        driverConfiguration.init(servletContext);

        LOG.debug(" [1b] Registering DriverConfiguration. . .");
        servletContext.setAttribute(DRIVER_CONFIG_KEY, driverConfiguration);


        LOG.debug(" [2a] Loading Optional AdminConfiguration. . .");
        AdminConfiguration adminConfiguration = (AdminConfiguration)
                springContext.getBean("AdminConfiguration");

        if (adminConfiguration != null) {
            LOG.debug(" [2b] Registering Optional AdminConfiguration");
            servletContext.setAttribute(ADMIN_CONFIG_KEY, adminConfiguration);
        } else {
View Full Code Here

TOP

Related Classes of org.springframework.web.context.WebApplicationContext

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.