portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amine kaid" <mohamed-amine.k...@cgbi.fr>
Subject Cookies can not be set in jsp portlet
Date Thu, 10 Apr 2003 08:44:16 GMT
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


Mime
View raw message