Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.RedirectResolution


    // Stuff necessary to implement ActionBean!
    private ActionBeanContext context;
    public ActionBeanContext getContext() { return context; }
    public void setContext(ActionBeanContext context) { this.context = context; }
    @DefaultHandler public Resolution execute() { return new RedirectResolution("/somewhere.jsp"); }
View Full Code Here


        for (Map.Entry<String,String[]> entry : params.entrySet()) {
            FlashScope flash = FlashScope.getCurrent(getContext().getRequest(), true);
            flash.put(entry.getKey(), entry.getValue()[0]);
        }

        return new RedirectResolution("/FlashScopeTests.action");
    }
View Full Code Here

        return new RedirectResolution("/FlashScopeTests.action");
    }
   
    @HandlesEvent("FlashBean")
    public Resolution flashBean() {
        return new RedirectResolution("/FlashScopeTests.action").flash(this);
    }
View Full Code Here

*/
@UrlBinding("/InheritanceTests.action")
public class InheritanceTests extends SuperclassActionBean {
    /** A new handler method, that is now the default. */
    @DefaultHandler @DontValidate
    public Resolution different() { return new RedirectResolution("/child.jsp"); }
View Full Code Here

    @DefaultHandler @DontValidate
    public Resolution different() { return new RedirectResolution("/child.jsp"); }

    /** Another handler method that will cause validation to run. */
    @HandlesEvent("/Validate.action")
    public Resolution another() { return new RedirectResolution("/child.jsp"); }
View Full Code Here

    public String getFour() { return four; }
    public void setFour(String four) { this.four = four;}

    @DefaultHandler
    public Resolution index() {
        return new RedirectResolution("/super.jsp");
    }
View Full Code Here

    // Stuff necessary to implement ActionBean!
    private ActionBeanContext context;
    public ActionBeanContext getContext() { return context; }
    public void setContext(ActionBeanContext context) { this.context = context; }
    @DefaultHandler public Resolution execute() { return new RedirectResolution("/somewhere.jsp"); }
View Full Code Here

  public Resolution newAccount() {
    accountService.insertAccount(account);
    account = accountService.getAccount(account.getUsername());
    myList = catalogService.getProductListByCategory(account.getFavouriteCategoryId());
    authenticated = true;
    return new RedirectResolution(CatalogActionBean.class);
  }
View Full Code Here

  public Resolution editAccount() {
    accountService.updateAccount(account);
    account = accountService.getAccount(account.getUsername());
    myList = catalogService.getProductListByCategory(account.getFavouriteCategoryId());
    return new RedirectResolution(CatalogActionBean.class);
  }
View Full Code Here

      myList = catalogService.getProductListByCategory(account.getFavouriteCategoryId());
      authenticated = true;
      HttpSession s = context.getRequest().getSession();
      // this bean is already registered as /actions/Account.action
      s.setAttribute("accountBean", this);
      return new RedirectResolution(CatalogActionBean.class);
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.action.RedirectResolution

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.