Hello.
I cannnt find cookie file.
I use
JSWDK-1.0.1
IE5.5
Windows95
Offcource I serched c:\windows\cookis.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CookieTest extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
String name = "cookietest";
Cookie[] cookies = null;
Cookie cookie = new Cookie(name, "value");
cookie.setMaxAge(100000);
response.addCookie(cookie);
pw.println("<html>");
pw.println("<body>");
if ((cookies = request.getCookies()) != null) {
for (int i=0; i<cookies.length; i++) {
pw.println(cookies[i].getName());
pw.println(cookies[i].getValue());
}
}
pw.println("</body>");
pw.println("</html>");
}
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
