Package net.sourceforge.pebble.web.view

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


    String redirectUrl = request.getParameter("redirectUrl");

    if (redirectUrl == null || redirectUrl.trim().length() == 0) {
      redirectUrl = blog.getUrl();
    }
    return new RedirectView(redirectUrl);
  }
View Full Code Here


      blog.info("Directory \"" + name + "\" created.");
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }

    return new RedirectView(blog.getUrl() + directory.getUrl());
  }
View Full Code Here

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

    return new RedirectView(blog.getUrl() + directory.getUrl());
  }
View Full Code Here

    try {
      PebbleContext.getInstance().getConfiguration().getSecurityRealm().removeOpenIdFromUser(userDetails, openId);
    } catch (SecurityRealmException sre) {
      throw new ServletException(sre);
    }
    return new RedirectView(blog.getUrl() + "/editUserPreferences.secureaction");
  }
View Full Code Here

          realm.updateUser(newUserDetails);
          if (password1 != null && password1.length() > 0) {
            realm.changePassword(username, password1);
          }
        }
        return new RedirectView(blog.getUrl() + "viewUsers.secureaction");
      }

      getModel().put("validationContext", validationContext);
      getModel().put("user", newUserDetails);
      getModel().put("newUser", newUser);
View Full Code Here

      }
    }

    String redirectUrl = request.getParameter("redirectUrl");
    if (redirectUrl != null && redirectUrl.trim().length() > 0) {
      return new RedirectView(redirectUrl);
    } else {
      return new RedirectView(blog.getUrl());
    }
  }
View Full Code Here

        return new ForwardView("/reindexBlog.secureaction");
      }

    }

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

      if (results.getNumberOfHits() == 1) {
        // if there is only one hit, redirect the user to it without the
        // search results page
        SearchHit hit = (SearchHit)results.getHits().get(0);
        return new RedirectView(hit.getPermalink());
      } else {
        // show all results on the search results page
        String sort = request.getParameter("sort");
        if (sort != null && sort.equalsIgnoreCase("date")) {
          results.sortByDateDescending();
View Full Code Here

    Cookie terminate = new Cookie(TokenBasedRememberMeServices.SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY, null);
    terminate.setMaxAge(-1);
    response.addCookie(terminate);
   
    return new RedirectView(PebbleRedirectStrategy.sanitiseUrl(request.getContextPath(), redirectUrl));
  }
View Full Code Here

    }

    // is there a redirect override?
    String redirectUrl = request.getParameter("redirectUrl");
    if (redirectUrl != null && redirectUrl.length() > 0) {
      return new RedirectView(redirectUrl);
    } else {
      return new ForwardView("/viewRefererFilters.secureaction");
    }
  }
View Full Code Here

TOP

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

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.