Package action

Source Code of action.HomeActionBean

package action;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import dao.BeneficiarDao;
import dao.InformatiiDao;
import daoI.IBeneficiarDao;
import daoI.IInformatiiDao;

public class HomeActionBean extends BaseActionBean {


    private String date;

    public String getDate() {
        return date;
    }

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

    public Resolution randomDate() {
        IBeneficiarDao helper = new BeneficiarDao();
        date = helper.getPersonByID(2);
        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");
    }

    public String getHome() {
        IInformatiiDao informatiiDao = new InformatiiDao();
        String x=informatiiDao.getDescriereByNume("home");;
        return informatiiDao.getDescriereByNume("home");
    }

    public String getDespreNoi() {
        IInformatiiDao informatiiDao = new InformatiiDao();
        return informatiiDao.getDescriereByNume("despreNoi");
    }
}
TOP

Related Classes of action.HomeActionBean

TOP
Copyright © 2018 www.massapi.com. 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.