Package net.sourceforge.pebble.web.view

Examples of net.sourceforge.pebble.web.view.ForwardView


          return new RedirectView(blog.getUrl() + "editUserDetails.secureaction");
      }

      getModel().put("validationContext", validationContext);
      return new ForwardView("/editUserDetails.secureaction");
    } catch (SecurityRealmException e) {
      throw new ServletException(e);
    }
  }
View Full Code Here


   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    String flavor = request.getParameter("flavor");

    if (flavor != null && flavor.equalsIgnoreCase("zip")) {
      return new ForwardView("/zipDirectory.secureaction?type=blogData");
    }

    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);

    response.setContentType("application/xml; charset=" + blog.getCharacterEncoding());
View Full Code Here

        return new RedirectView(blog.getUrl() + "editUserPreferences.secureaction");
      }

      getModel().put("validationContext", validationContext);
      return new ForwardView("/editUserPreferences.secureaction");
    } catch (SecurityRealmException e) {
      throw new ServletException(e);
    }
  }
View Full Code Here

      return new ForbiddenView();
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    }

    return new ForwardView("/editFile.secureaction");
  }
View Full Code Here

   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    getModel().put(Constants.CATEGORY_KEY, new Category());

    return new ForwardView("/viewCategories.secureaction");
  }
View Full Code Here

    String themeName = request.getParameter("theme");
    if (themeName == null || themeName.length() == 0) {
      themeName = Theme.DEFAULT_THEME_NAME;
    }
    Utilities.restoreTheme(blog, themeName);
    return new ForwardView("/reloadBlog.secureaction");
  }
View Full Code Here

   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    String tag = request.getParameter("tag");
    try {
      return new ForwardView("/search.action?query=tag:\"" + URLEncoder.encode(Tag.encode(tag), blog.getCharacterEncoding()) + "\"&sort=date");
    } catch (UnsupportedEncodingException uee) {
      throw new ServletException(uee);
    }
  }
View Full Code Here

   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    Utilities.resetTheme(blog);
    return new ForwardView("/reloadBlog.secureaction");
  }
View Full Code Here

   * @param response the HttpServletResponse instance
   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    System.gc();
    return new ForwardView("/aboutBlog.secureaction");
  }
View Full Code Here

      // if the following properties have changed, reload the blog
      //  - timezone
      String newTimeZone = blog.getProperty(Blog.TIMEZONE_KEY);

      if (!currentTimeZone.equals(newTimeZone)) {
        return new ForwardView("/reindexBlog.secureaction");
      }

    }

    return new RedirectView(blog.getUrl() + "viewBlogProperties.secureaction");
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.ForwardView

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.