I get the input from the form.html, and I want to see the JSTL.jsp include the include.jspf(at bottom) with a difference sentence.But why I always get all the four <c:if> sentence?I want to see only one. My opinion is because the request and response in JSTLTest.java are only passed to JSTL.jsp, the include.jspf haven't gotten them, but why it show all the four choices(I think there should be none)?
I will show a html,a
Java code and a
JSP with <jsp:include>,they are just for
test:
The form.html:
The Java code:
And the JSTL.jsp is:
The include.jspf is, which has the problem with either <c:choose> or <c:if>: