I'm having problems with the <jsp:include> tag.
includer.jsp:
<jsp:include page="/includee.jsp">
<jsp:param name="command" value="ListThis" />
</jsp:include>
includee.jsp:
<jsp:useBean id="command" scope="request" type="java.lang.String" />
...
<%
if (command.equals("ListThis")) {
%>
...
<%
}
%>
I don't seem to be getting any value out of the command parameter. It's there since I don't get a "bean id .. not found" error message. And the code works if I replace the <jsp:include> with:
<%
request.setAttribute("command", "ListThis");
pageContext.include("/includee.jsp");
%>