Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Setting Cookies

Keith Bottner

2008-11-05

Replies: Find Java Web Hosting

Author LoginPost Reply
I am attempting to set a cookie for a user; however, it does not seem
to be retained by the browser. I have tried all 3 major browsers.

Here is the relevant code:

@Inject
private Cookies cookies;

private void setCookies()
{
 String value = "test";
 cookies.writeCookieValue(Constants.COOKIE_NAME, value, "/",
"localhost");
}

Has anyone had any problems with cookies or know of any problems?

One more thing, I am doing all of this from within an onSetupRender
within a component.

Thanks in advance,

Keith


©2008 gg3721.com - Jax Systems, LLC, U.S.A.