jsp – Hidden Pages (Java for Web Development)

I'm studying the Java Tutorial for Web Development – Caelum, but I have difficulties in one part. In chapter 9.10 HIDE OUR PAGES, I have already placed all my pages in the directory WEB-INF / jsp and I have already modified the section "/WEB-INF/jsp/list-contact.jsp"; in the ListContactLogic class, but I can not directly access jsp list-contacts.jsp through the http: // localhost: 8080 / fj21-directory / contact-list.jsp address.
I will make my codes available for the ControllerServlet class, the ContactLogic list, and the JSP contact list.

Could you help me solve it?

thank you so much

ControllerServlet class:

package br.com.caelum.agenda.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.caelum.mvc.logica.Logica;
@WebServlet ("/ mvc")
Public class ControllerServlet extends HttpServlet {
protected void service (request HttpServletRequest, response HttpServletResponse) throws ServletException, IOException {
String parameter = request.getParameter ("logic");
String className = "br.com.caelum.mvc.logica." + parameter;

try {
Class class = Class.forName (className);
Logica logica = (Logica) class.newInstance ();
String page = logica.executa (request, response);
request.getRequestDispatcher (page) .forward (request, response);

} catch (Exception e) {
throw new ServletException ("Application logic caused an exception", e);
}
}
}

Class listContactsLogic

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.com.caelum.agenda.dao.ContactDao;
import br.com.caelum.agenda.modelo.Contato;

Public class ListContactsLogic implements Logica {
public String executes (req HttpServletRequest, res HttpServletResponse) throws an exception {
Listing contacts = new ContactDao (). getLista ();
req.setAttribute ("contacts", contacts);
returns "/WEB-INF/jsp/list-contacts.jsp";
}
}

jsp list-contacts.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>



  
    
    Insert the title here
  
  
    

    
            
$ {contact.name} $ {contact.mail} Email not informed $ {contact.endereco} To take off