Package br.net.woodstock.rockframework.web

Examples of br.net.woodstock.rockframework.web.JSPException


      List<MenuItemBean> menu = MenuHelper.getMenu(baseName);
      String menuStr = transformer.toText(menu);

      event.getServletContext().setAttribute(menuAttribute, menuStr);
    } catch (Exception e) {
      throw new JSPException(e);
    }
  }
View Full Code Here


  protected boolean validateReferer(final HttpServletRequest request) {
    if (this.regex == null) {
      this.regex = this.getInitParameter(RegexRefererFilter.REGEX_PARAMETER);
    }
    if (ConditionUtils.isEmpty(this.regex)) {
      throw new JSPException("Parameter '" + RegexRefererFilter.REGEX_PARAMETER + "' must be set");
    }
    if (super.validateReferer(request)) {
      String referer = RequestUtils.getReferer(request);
      if (Pattern.matches(this.regex, referer)) {
        return true;
View Full Code Here

  protected boolean validateReferer(final HttpServletRequest request) {
    if (this.regex == null) {
      this.regex = this.getInitParameter(RegexRefererFilter.REGEX_PARAMETER);
    }
    if (ConditionUtils.isEmpty(this.regex)) {
      throw new JSPException("Parameter '" + RegexRefererFilter.REGEX_PARAMETER + "' must be set");
    }
    if (super.validateReferer(request)) {
      String referer = RequestUtils.getReferer(request);
      if (Pattern.matches(this.regex, referer)) {
        return true;
View Full Code Here

      String clazzName = this.getInitParameter(ParameterizedResourceFilter.RESOURCE_MANAGER_PARAMETER);
      Class clazz = Class.forName(clazzName);
      ResourceManager resourceManager = (ResourceManager) clazz.newInstance();
      this.setResourceManager(resourceManager);
    } catch (Exception e) {
      throw new JSPException(e);
    }
  }
View Full Code Here

      List<MenuItemBean> menu = MenuHelper.getMenu(baseName);
      String menuStr = transformer.toText(menu);

      event.getServletContext().setAttribute(menuAttribute, menuStr);
    } catch (Exception e) {
      throw new JSPException(e);
    }
  }
View Full Code Here

  protected boolean validateReferer(final HttpServletRequest request) {
    if (this.regex == null) {
      this.regex = this.getInitParameter(RegexRefererFilter.REGEX_PARAMETER);
    }
    if (ConditionUtils.isEmpty(this.regex)) {
      throw new JSPException("Parameter '" + RegexRefererFilter.REGEX_PARAMETER + "' must be set");
    }
    if (super.validateReferer(request)) {
      String referer = RequestUtils.getReferer(request);
      if (Pattern.matches(this.regex, referer)) {
        return true;
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.web.JSPException

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.