Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ForwardResolution


    }

    @Override
    public Resolution handleValidationErrors(ValidationErrors errors) {
        if ("ajaxChange".equals(getContext().getEventName())) {
            return new ForwardResolution("/preferences/ajaxChangePasswordGenerationPreferences.jsp");
        }
        return null;
    }
View Full Code Here


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

     * @return a forward resolution which updates the preferences page with the
     * change password preferences form
     */
    public Resolution ajaxView() {
        loadUnmasked();
        return new ForwardResolution("/preferences/ajaxChangePasswordPreferences.jsp");
    }
View Full Code Here

     * @return a forward resolution which updates the preferences page with a success message
     * and a clean preferences page
     */
    public Resolution ajaxChange() {
        doChange();
        return new ForwardResolution("/preferences/ajaxPreferences.jsp");
    }
View Full Code Here

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

    @DefaultHandler
    @DontValidate
    public Resolution view() {
        loadTimeZones();
        loadTimeZone();
        return new ForwardResolution("/preferences/changePreferredTimeZone.jsp");
    }
View Full Code Here

     */
    @DontValidate
    public Resolution ajaxView() {
        loadTimeZones();
        loadTimeZone();
        return new ForwardResolution("/preferences/ajaxChangePreferredTimeZone.jsp");
    }
View Full Code Here

     * @return a forward resolution which updates the preferences page with a success message
     * and a clean preferences page
     */
    public Resolution ajaxChange() {
        doChange();
        return new ForwardResolution("/preferences/ajaxPreferences.jsp");
    }
View Full Code Here

        String path = UrlBindingFactory.getInstance().getBindingPrototype(
                actionBean.getClass()).getPath();
        if (path.contains("validareConturi") || path.contains("stergereConturiGeologi") || path.contains("Admin.action?datePersonale")) {
            HttpSession session = execContext.getActionBeanContext().getRequest().getSession(false);
            if (session == null || session.getAttribute("admin") == null || session.getAttribute("admin").equals(0)) {
                resolution = new ForwardResolution("/WEB-INF/jsp/home.jsp");
            }
        } else if (path.contains("/Amplasament") || path.contains("/Beneficiar") || path.contains("/Compresibilitate") || path.contains("/Compresiune") || path.contains("/DensitateaPamanturilor") || path.contains("/Foraj") || path.contains("/MetodaCernerii") || path.contains("/MetodaSedimentarii") || path.contains("/Proba") || path.contains("/Rezultate") || path.contains("/Stanta") || path.contains("/Strat") || path.contains("/VizualizareForaj") || path.contains("/W") || path.contains("/WL") || path.contains("/WP") || path.contains("datePersonale") || path.contains("proiecteGeologSef")) {
            HttpSession session = execContext.getActionBeanContext().getRequest().getSession(false);
            if (session == null || session.getAttribute("user") == null || session.getAttribute("user").equals(0) || session.getAttribute("user").equals(-1)) {
                resolution = new ForwardResolution("/WEB-INF/jsp/home.jsp");
            }
        }
        return resolution;
    }
View Full Code Here

            getContext().getRequest().getSession(true).setAttribute("metS", medSedimentarii);
        }

        getContext().getRequest().getSession(true).setAttribute("metS", medSedimentarii);
        return new ForwardResolution("/WEB-INF/jsp/metoda_sedimentarii.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.