Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ForwardResolution


        medSedimentarii.setCorectiaTemperaturii(formulaMetSedimentariiCol6(tempCititaDinBdList));
        medSedimentarii.setRc(formulaMetSedimentariiCol7(medSedimentarii.getCitiriCorectate(), medSedimentarii.getCorectiaTemperaturii()));
        medSedimentarii.setDiametruGranule(formulaMetSedimentariiCol5(medSedimentarii.getRc(), medSedimentarii.getTimpFloat(), Float.parseFloat(getB()), Float.parseFloat(getRs())));
        medSedimentarii.setMp(formulaMetSedimentariiCol8(medSedimentarii.getRc(), Float.parseFloat(getRs())));
        getContext().getRequest().getSession(true).setAttribute("metS", medSedimentarii);
        return new ForwardResolution("/WEB-INF/jsp/metoda_sedimentarii.jsp");
    }
View Full Code Here


            metStantei.setFinalC(col3);
            metStantei.setConstantaDeCalcul(getConstantaDeCalcul(stantaAuxiliar,(Float)col2.get(4)));
        }

        getContext().getRequest().getSession(true).setAttribute("stanta", metStantei);
        return new ForwardResolution("/WEB-INF/jsp/stanta.jsp");
    }
View Full Code Here

        List col2 = formulaStantaCol2(param, vs, ros);
        List col3 = formulaStantaCol3(param, 0, ros);
        metStantei.setInitialC(col2);
        metStantei.setFinalC(col3);
        getContext().getRequest().getSession(true).setAttribute("stanta", metStantei);
        return new ForwardResolution("/WEB-INF/jsp/stanta.jsp");
    }
View Full Code Here

   

    public Resolution submit() {
        if (parola == null || utilizator == null) {
            getContext().getRequest().getSession(true).setAttribute("user", -3);
            return new ForwardResolution("/WEB-INF/jsp/home.jsp");
        }
        IAdminDao adminDao = new AdminDao();
        Admin admin = adminDao.adminExistent(utilizator, parola);
        if (admin != null) {
            getContext().getRequest().getSession(true).setAttribute("admin", admin.getIdAdmin());
            return new ForwardResolution(GeologiActionBean.class, "validareConturi");
        }
        IGeologDao geo = new GeologDao();
        Geolog geolog = geo.geologExistent(utilizator, parola);
        if (geolog != null) {
            if ((geolog.getConfirmare().equals("in asteptare"))||(geolog.getConfirmare().equals("refuzat"))) {
                getContext().getRequest().getSession(true).setAttribute("user", -2);
                return new ForwardResolution("/WEB-INF/jsp/home.jsp");
            } else {
                getContext().getRequest().getSession(true).setAttribute("user", geolog.getIdGeolog());
                return new ForwardResolution("/WEB-INF/jsp/geologLogat.jsp");
            }
        } else {
            getContext().getRequest().getSession(true).setAttribute("user", -1);
            return new ForwardResolution("/WEB-INF/jsp/home.jsp");
        }
    }
View Full Code Here

        }
    }

    public Resolution inregistrare() {
        getContext().getRequest().getSession(true).setAttribute("inreg", 1);
        return new ForwardResolution("/WEB-INF/jsp/inregistrare.jsp");
    }
View Full Code Here

import net.sourceforge.stripes.action.Resolution;
public class ProiectePublice extends BaseActionBean {
@DefaultHandler
    public Resolution view() {
         getContext().getRequest().getSession(true).setAttribute("vizualizareForaj", "proiectePublice");
        return new ForwardResolution("/WEB-INF/jsp/vizualizareForaj.jsp");
    }
View Full Code Here

        IAmplasamentDao amplasamentDao= new AmplasamentDao();
        amplasamentCurent = amplasamentDao.getAmplasamentByID(idAmplasamentCurent).toString();
        IForajDao forajDao= new ForajDao();
        forajCurent = forajDao.getForajByID(idForajCurent).toString();*/
        idProbaCurenta = Integer.parseInt(getContext().getRequest().getSession(true).getAttribute("idProbaCurenta").toString());
        return new ForwardResolution("/WEB-INF/jsp/w.jsp");
    }
View Full Code Here

        } else {
            rezultatePartiale = new ArrayList();
        }
        rezultatePartiale.add(r);
        getContext().getRequest().getSession(true).setAttribute("WrezultatePartiale", rezultatePartiale);
        return new ForwardResolution("/WEB-INF/jsp/w.jsp");
    }
View Full Code Here

        rezultatePartiale = (List) getContext().getRequest().getSession(true).getAttribute("WrezultatePartiale");
        if (rezultatePartiale != null && rezultatePartiale.size() > 0) {
            rezultatePartiale.remove(getRezultatePartialeR());
            getContext().getRequest().getSession(true).setAttribute("WrezultatePartiale", rezultatePartiale);
        }
        return new ForwardResolution("/WEB-INF/jsp/w.jsp");
    }
View Full Code Here

        if (p > 1) {
            mediaS = mediaS.substring(0, p + 2);
        }
        setUmiditate(mediaS);
        getContext().getRequest().getSession(true).setAttribute("WrezultatePartiale", null);
        return new ForwardResolution("/WEB-INF/jsp/w.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.