having A.jsp, and B.jsp

in A.jsp

<%@ include file="B.jsp" %>
<!-- or-->
<jsp:include page="B.jsp" flush="true"/>
<!--result in both cases the same-->


in B.jsp

<%
Cookie userCookie = new Cookie("user", "foo");
response.addCookie(userCookie);
%>


Cookie doesn't get there, how can I make this happen ? Setting cookie to A.jsp from within B.jsp ?