View Full Version : setting cookie inside included page

12-12-2007, 09:51 PM
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");

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum