  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Cookies lost when included JSP fi | - Cookies lost when included JSP fi 2007-07-11 - By weisinger
Back The following file creates a cookie when called alone, but when this file is included in another JSP, the cookie doesn't survive. Is this a bug in the JBoss App server, or is there configuration or code that I can use to get it to work?
cookietest.jsp <%@ page contentType="text/html" %> | <html><body> | <p> | <jsp:directive.page import="javax.servlet.http.Cookie "/> | <jsp:scriptlet><![CDATA[ | Cookie c = new Cookie("NewCookie","Data for Cooki"); | out.println(c.getName()+": "+c.getValue()+"<br/>"); | response.addCookie(c); | ]]></jsp:scriptlet> | </p> | </body></html>
It fails though when included in this JSP page:
jsptest.jsp <%@ page contentType="text/html" %> | <jsp:include page="./cookietest.jsp" flush="true"/> | <html><body> | <center><b>JSP Test</b></center> | </body></html>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4063243#4063243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4063243 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |