<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Resultado da busca:- ${empresa.id} : ${empresa.nome }
public class BuscaEmpresa extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String filtro = req.getParameter("filtro");
Collection<Empresa> empresas = new EmpresaDAO().buscaPorSimilaridade(filtro);
req.setAttribute("empresas", empresas);
RequestDispatcher dispatcher = req.getRequestDispatcher("/WEB-INF/paginas/busca.jsp");
dispatcher.forward(req, resp);
}
}
HTTP Status 500 - javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String