You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by amine kaid <mo...@cgbi.fr> on 2003/04/10 10:44:16 UTC
Cookies can not be set in jsp portlet
hello,
I want to change the value of a cookie recovered in a page jsp, this cookie
is
well recovered, but its value does not be seted.
the code used here :
val="NewValue";
Cookie[] cookies = data.getRequest().getCookies();
for(int i = 0 ; i < cookies.length ; i++)
{ if(cookies[i].getName().equals("MYCOOKIE"))
{
cookies[i].setValue(val);
response.addCookie(cookies[i]);
}
}
thank you in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org