/* * ComandoLogin.java * * Created on 27 de Junho de 2007, 20:04 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package app; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author Traceur Cquelado */ public class ComandoLogin implements Comando { /** Creates a new instance of ComandoLogin */ public ComandoLogin() { } public String executar(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if(validarUsuario(request.getParameter("login"), request.getParameter("senha"))) return "/index.jsp"; return "/login.jsp"; } private boolean validarUsuario(String string, String string0) { return true; } }