由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How do I send cookies from a servlet?
相关主题
Servlet & Cookie 求助servlet读取directory的基本问题
Help Cookie getMaxAge() always return -1运行servlet时出现的http status 404问题
有没有办法在browser第一次访问的时候知道是不是支持cookie?JAVA 一族
纯ajax网站和sevlet优劣是啥Re: serverlet
理解Java Servlets [fwd]Re: how to initialize corba object orb in servlet
Another Servlet Problem:Browser CachingRe: How to debug servlet?
need your commentsWhy aren't cookies stored by my servlets accessible to my CGI scripts or ASP pages?(FAQ)
请推荐servlet还有jsp的书Re: Help! JDBC-ODBC in servlet. Thanks.
相关话题的讨论汇总
话题: cookies话题: http话题: send话题: servlet话题: cookie
进入Java版参与讨论
1 (共1页)
b*g
发帖数: 644
1
HTTP is a stateless protocol, which makes tracking user
actions difficult.
One solution is to use a cookie, which is a small piece of
data sent by a
web browser every time it requests a page from a particular
site. Servlets,
and CGI scripts, can send cookies when a HTTP request is
made - though as
always, there is no guarantee the browser will accept it.
Cookies are represented by the javax.servlet.http.Cookie
class. Cookie has
a single constructor, which takes two strings (a key and a
value).
/
1 (共1页)
进入Java版参与讨论
相关主题
Re: Help! JDBC-ODBC in servlet. Thanks.理解Java Servlets [fwd]
Re: about jsp and servletAnother Servlet Problem:Browser Caching
Re: 请教一个问题—servletneed your comments
Re: how to handle Null in JDBC servlet?请推荐servlet还有jsp的书
Servlet & Cookie 求助servlet读取directory的基本问题
Help Cookie getMaxAge() always return -1运行servlet时出现的http status 404问题
有没有办法在browser第一次访问的时候知道是不是支持cookie?JAVA 一族
纯ajax网站和sevlet优劣是啥Re: serverlet
相关话题的讨论汇总
话题: cookies话题: http话题: send话题: servlet话题: cookie