Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ForwardResolution


    @Reference
    HelloworldService service;

    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution("/WEB-INF/jsp/home.jsp");
    }
View Full Code Here


        for (String jsp : attempts) {
            try {
                // This will try /account/ViewAccount.jsp
                if (ctx.getResource(jsp) != null) {
                    return new ForwardResolution(jsp);
                }
            }
            catch (MalformedURLException mue) {
            }
        }
View Full Code Here

        exectx.setActionBean(actionBean);
        exectx.setActionBeanContext(context);
        DispatcherHelper.fillInValidationErrors(exectx);

        // Forward back to referer, using the wrapped request
        return new ForwardResolution(path) {
            @Override
            public void execute(HttpServletRequest request, HttpServletResponse response)
                    throws ServletException, IOException {
                super.execute(wrapper, response);
            }
View Full Code Here

    /** A very simple add event that returns a Forward reslution. */
    @DefaultHandler
    public Resolution index() {
        context.getResponse().addCookie(new Cookie("testCookie", "testCookie"));
        return new ForwardResolution("/mock/success.jsp");
    }
View Full Code Here

    /** A very simple add event that returns a Forward reslution. */
    @DefaultHandler @HandlesEvent("add")
    public Resolution add() {
        this.result = lhs + rhs;
        return new ForwardResolution("/mock/success.jsp");
    }
View Full Code Here

    /** A very simple multiplication event. */
    @HandlesEvent("multiply")
    public Resolution multiply() {
        this.result = lhs * rhs;
        return new ForwardResolution("/mock/success.jsp");
    }
View Full Code Here

            return getContext().getSourcePageResolution();
        }

        this.result = lhs / rhs;
        getContext().getRequest().setAttribute("integerResult", (int) this.result);
        return new ForwardResolution("/mock/success.jsp");
    }
View Full Code Here

    @DefaultHandler
    @DontValidate
    public Resolution view() {
        loadSupportedLocales();
        loadLocale();
        return new ForwardResolution("/preferences/changePreferredLocale.jsp");
    }
View Full Code Here

     */
    @DontValidate
    public Resolution ajaxView() {
        loadSupportedLocales();
        loadLocale();
        return new ForwardResolution("/preferences/ajaxChangePreferredLocale.jsp");
    }
View Full Code Here

     * Displays the welcome page
     * @return a forward resolution to the welcome page
     */
    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution("/welcome.jsp");
    }
View Full Code Here

TOP

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

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.