Cookies are server-specific and can be accessed by any means
(JavaScript, VBScript, Java on the client; Perl, C, Java, ASP on
the server) as long as the client-cookie-server relationship is
correct. See Jason Hunter's "Java Servlet Programming," pp.
447ff., or check out the javax.servlet.http.cookie API (available
in the Tomcat installation at:
http://localhost:8080/docs/api/index.html).
Cheers!
Mark
----- Original Message -----
From: "Mike Akerman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 2:53 PM
Subject: Re: disabling button....!
> > Have the onclick() method write a cookie with an expiration
of -1
> > (deleted after session). In the same JavaScript function,
test
> > for the existence of this cookie. if( cookie) {do nothing}.
> >
> > Cheers!
> > Mark
>
> This is very clever, has anyone used cookies to communicate
between
> JavaScript and a Servlet or JSP?
>
> Michael Akerman
>
>
_________________________________________________________________
__________
> 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
>
___________________________________________________________________________
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