Hi Feng,

You can use Netscape Live Connect to call any
JavaScript function from the java applet. Then set the
cookies in this javascript function.

e.g.

Applet code:
------------
JSObject  myObject = JSObject.getWindow();
myObject.call("setCookie()","HELLO_COOKIE");


JavaScript Code:
----------------

<APPLET NAME="...      >

<script>
function setCookie( cookieName){

-----
------
}

</script>

For more details you can look at the API for
Netscape's Live Connect and write to me also.


Cheers!
Vivek





--- "SUBSCRIBE EJB-INTEREST J.H,Feng" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>         Hello,My program use  a applet,the applet
> should be able to  set and get cookies at client.
>     how can I do it? or a example,please?thanks.
>
> J.H,Feng
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to