Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ForwardResolution


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

    public Resolution adaugareStrat() {
        return new ForwardResolution(action.StratActionBean.class);
    }
View Full Code Here


        if (getStratR() != null) {
            String idStrat = getStratR();
            IStratDao stratDao = new StratDao();
            stratDao.delete(Integer.parseInt(idStrat));
        }
        return new ForwardResolution("/WEB-INF/jsp/editareForaj.jsp");
    }
View Full Code Here

    private int idDescriere3Curent;
    private int idDescriere4Curent;

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

                    }
                }

            } catch (NumberFormatException nfe) {
                System.out.println("NumberFormatException: " + nfe.getMessage());
                return new ForwardResolution("/WEB-INF/jsp/adaugaStrat.jsp");
            }

        } catch (NumberFormatException nfe) {
            System.out.println("NumberFormatException: " + nfe.getMessage());
            return new ForwardResolution("/WEB-INF/jsp/adaugaStrat.jsp");
        }
        return new ForwardResolution("/WEB-INF/jsp/adaugaStrat.jsp");

    }
View Full Code Here

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

    }

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

    @DefaultHandler
    public Resolution currentDate() {
        BeneficiarDao helper = new BeneficiarDao();
        date = helper.getPersonByID(1);
        return new ForwardResolution(VIEW);
    }
View Full Code Here

    }

    public Resolution randomDate() {
        IBeneficiarDao helper = new BeneficiarDao();
        date = helper.getPersonByID(2);
        return new ForwardResolution(VIEW);
    }
View Full Code Here

        return new ForwardResolution(VIEW);
    }
    private static final String VIEW = "/WEB-INF/jsp/home.jsp";

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

    private String vizibilitate;
    private Boolean emailInvalid = false;
    private Boolean telefonInvalid = false;
    private Boolean geologAdaugat= false;
    public Resolution inregistrare() {
        return new ForwardResolution("/WEB-INF/jsp/inregistrare.jsp");
    }
View Full Code Here

    public Resolution submit() {
        IGeologDao geoDao = new GeologDao();
        Geolog geolog = geoDao.geologExistent(username, parola);
        if (geolog != null) {
            getContext().getRequest().getSession(true).setAttribute("user", geolog.getIdGeolog());
            return new ForwardResolution("/WEB-INF/jsp/geologLogat.jsp");
        } else {
            String confirmareVizibilitate;
            String acceptare = "in asteptare";
            if (getVizibilitate() == null) {
                confirmareVizibilitate = "nu";
            } else {
                confirmareVizibilitate = "da";
            }

            byte[] parolaB = parola.getBytes();
            try {
                MessageDigest algorithm = MessageDigest.getInstance("MD5");
                algorithm.reset();
                algorithm.update(parolaB);
                byte messageDigest[] = algorithm.digest();

                StringBuffer hexString = new StringBuffer();
                for (int i = 0; i < messageDigest.length; i++) {
                    hexString.append(Integer.toHexString(0xFF & messageDigest[i]));
                }
                parola = hexString + "";
            } catch (Exception e) {
            }
            if (!isEmailValid(email)) {
                setEmailInvalid(true);
                return new ForwardResolution("/WEB-INF/jsp/inregistrare.jsp");
            }
            if (!isNumeric(telefon) || telefon.length() != 10) {
                setTelefonInvalid(true);
                return new ForwardResolution("/WEB-INF/jsp/inregistrare.jsp");
            }
            setGeologAdaugat(true);
            geoDao.saveOrUpdate(new Geolog(nume, prenume, telefon, email, adresa, username, parola, confirmareVizibilitate, acceptare));
            return new ForwardResolution("/WEB-INF/jsp/inregistrare.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.