can anyone tell me how can i change color of header tags (ie. h1, h2, h3), i mean accept color from user and maintain that color in cookies and use maintained color from cookie, and set color to header tag..??
but how will i set this color as my header tags color although it's a string..??
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
You're setting the cookie for the response - you can't possibly see it in the request that happened before you created the cookie. On the second access to the servlet you should see the cookie.
Punit Jain
Ranch Hand
Joined: Aug 20, 2011
Posts: 902
posted
0
but i am able to see the cookie..
i am getting output as the color name.
Now that you know how to get the color from the cookie, next thing you need find out how do you set the color of the header tag. Then worry about putting the color from cookie into the color of header tag.
Punit Jain
Ranch Hand
Joined: Aug 20, 2011
Posts: 902
posted
0
<h1 color="red"></h1>
this red values i m getting from user, but how do i set??