struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sai reddy <dubbaka...@gmail.com>
Subject How to set multiple cookies to access them using bean:cookie multiple="yes" tag.
Date Sun, 06 Jan 2008 04:38:03 GMT
I'm a newbie to struts. I wanted to practice <bean:cookie> tag's 'multiple' attribute.
But the problem is i don't know how to set multiple cookies.
Please help me.

I tried this code to set multiple cookies.......but only the last
cookie gets added.......i mean the first one gets replaced by the
second cookie resulting in only one cookie set at the end.

##################################################################
##	response.addCookie(new Cookie("animal","dog"));		##
##	response.addCookie(new Cookie("animal","cat"));		##
##################################################################

Please tell me how to set multiple cookies......




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message