I have a jsp page with only two includes in the whole code:
<%@ include file = "../_global/prefixos.jsp" %>
<%@ include file = "../_global/testaProfessor.jsp" %>
In prefixos.jsp
I have the following:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
In testaProfessor.jsp
I have the following:
<jsp:useBean id="validaLogin" class="dao.usuario.TestaLoginUsuario" />
<c:set scope="request" var="usuarioLogado" value="${validaLogin.testaLoginUsuario(pageContext.request)}" />
<c:set scope="request"
of page testaProfessor.jsp
does not have access to <%@ taglib prefix="c"
of page prefixos.jsp
What should I do to resolve this problem?
EDITION
The answer given by @Bruno César, although it may help in other situations, in the context of my problem does not help.
The case is that if I include a file within a b, what is in a can be used in b. But that's not what I need.
I need two files a and b to be included in a file c and the contents of the file a to be available to file b as well. Not just the c file.
Any ideas?
Example:
index.jsp file
<%@ include file = "../_global/prefixos.jsp" %>
<%@ include file = "../_global/testaProfessor.jsp" %>
I need the contents of prefixos.jsp
to be available for testaProfessor.jsp
preixos.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
testaProfessor.jsp
<jsp:useBean id="validaLogin" class="dao.usuario.TestaLoginUsuario" />
<c:set scope="request" var="usuarioLogado" value="${validaLogin.testaLoginUsuario(pageContext.request)}" />