Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ForwardResolution


        proba.setNisip(nisip);
        proba.setPietris(pietris);
        proba.setBolovanis(bolovanis);
        probaDao.saveOrUpdate(proba);
        getContext().getRequest().getSession(true).setAttribute("rezultate", rezultate);
        return new ForwardResolution("/WEB-INF/jsp/rezultate.jsp");
    }
View Full Code Here


        if (getSelectedCombo() == 1) {
            int beneficiarID = Integer.parseInt(getBeneficiarFilter());
            getContext().getRequest().getSession(true).setAttribute("idBeneficiarCurent", beneficiarID);
            getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", 0);
            getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
            return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
        } else if (getSelectedCombo() == 2) {
            int amplasamentID = Integer.parseInt(amplasamentFilter);
            getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", amplasamentID);
            getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
            return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
        } else if (getSelectedCombo() == 3) {
            int beneficiarID = Integer.parseInt(getBeneficiarFilter());
            getContext().getRequest().getSession(true).setAttribute("idBeneficiarCurent", beneficiarID);
            getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", 0);
            getContext().getRequest().getSession(true).setAttribute("idForajCurent", 0);
            return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
        } else {
            Object b = getContext().getRequest().getSession(true).getAttribute("idBeneficiarCurent");
            if (b != null) {
                int bI = Integer.parseInt(b.toString());
                if (bI > 0) {
                    setIdBeneficiarCurent(bI);
                }
                Object a = getContext().getRequest().getSession(true).getAttribute("idAmplasamentCurent");
                if (a != null) {
                    int aI = Integer.parseInt(a.toString());
                    if (aI > 0) {
                        setIdAmplasamentCurent(aI);
                    }
                    Object f = getContext().getRequest().getSession(true).getAttribute("idForajCurent");
                    if (f != null) {
                        int fI = Integer.parseInt(f.toString());
                        if (fI > 0) {
                            setIdForajCurent(fI);
                        }
                    }
                }
            }
        }
        return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
    }
View Full Code Here

                forajDao.saveOrUpdate(foraj);
                setIdAmplasamentCurent(amplasamentID);
                getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", amplasamentID);
            } catch (NumberFormatException nfe) {
                System.out.println("NumberFormatException: " + nfe.getMessage());
                return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
            }
        } catch (NumberFormatException nfe) {
            System.out.println("NumberFormatException: " + nfe.getMessage());
            return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
        }
        return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
    }
View Full Code Here

                s = s.substring(0, p + 2);
            }
            ic = Float.valueOf(s.trim()).floatValue();
            probaDao.addIc(probaCurenta.getIdProba(), ic);
        }
        return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
    }
View Full Code Here

        }
        return foraje;
    }

    public Resolution reset() {
        return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
    }
View Full Code Here

    public Resolution reset() {
        return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
    }

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

        return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
    }

    public Resolution vizualizareForaj() {
        getContext().getRequest().getSession(true).setAttribute("vizualizareForaj", "proiectePrivate");
        return new ForwardResolution(action.VizualizareForajActionBean.class);
    }
View Full Code Here

        getContext().getRequest().getSession(true).setAttribute("vizualizareForaj", "proiectePrivate");
        return new ForwardResolution(action.VizualizareForajActionBean.class);
    }

    public Resolution adaugareProba() {
        return new ForwardResolution("/WEB-INF/jsp/adaugaProba.jsp");
    }
View Full Code Here

            getContext().getRequest().getSession(true).setAttribute("idProbaCurenta", idProba);
            String td = getTipDeterminareR();
            if (td.equals("granulozitate")) {
                if (idProba != null) {
                    getContext().getRequest().getSession(true).setAttribute("idProba", Integer.parseInt(idProba));
                    return new ForwardResolution(action.MetodaCerneriiActionBean.class);
                } else {
                    return new ForwardResolution("editareForaj.jsp");
                }
            } else if (td.equals("wp")) {
                return new ForwardResolution(action.WPActionBean.class);
            } else if (td.equals("compresibilitate")) {
                if (idProba != null) {
                    getContext().getRequest().getSession(true).setAttribute("idProba", Integer.parseInt(idProba));
                    return new ForwardResolution(action.StantaActionBean.class);
                } else {
                    return new ForwardResolution("editareForaj.jsp");
                }
            } else if (td.equals("w")) {
                return new ForwardResolution(action.WActionBean.class);
            } else if (td.equals("densitatea pamanturilor")) {
                return new ForwardResolution(action.DensitateaPamanturilor.class);
            } else if (td.equals("wl")) {
                return new ForwardResolution(action.WLActionBean.class);
            } else {
                return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
            }
        } else {
            return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
        }
    }
View Full Code Here

        if (getProbaR() != null) {
            String idProba = getProbaR();
            IProbaDao probaDao = new ProbaDao();
            probaDao.delete(Integer.parseInt(idProba));
        }
        return new ForwardResolution("/WEB-INF/jsp/editareForaj.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.