How to use cookies in struts

haiiI am new to struts. I want to get value in text field from one form to another using cookis in struts, can any one help me?, please...
[152 byte] By [Thilagavathia] at [2007-11-27 5:11:58]
# 1
I know how to use cookies in a jar. Would that help?scnr
quittea at 2007-7-12 10:32:34 > top of Java-index,Java Essentials,Java Programming...
# 2

Well, I don't know that placing cookies in the Struts of my car will help anything. I definately would not want to eat them afterwords (if there were anything left of them). ;-)

Edit: And please don't get all Huffy, it was just a joke. And I'm sorry, but, I can't help you. I have only sparingly used Struts (and that quite a while ago).

masijade.a at 2007-7-12 10:32:34 > top of Java-index,Java Essentials,Java Programming...
# 3

To write a cookie in Struts, you create one and add it to the response object. (response.addCookie(cookie)).

To read it, you use the bean:cookie tag.

As to use cookies to get a given value from one form to another, there might be better ways, like using request attributes.

You might be better off keeping those cookies in the jar, after all.

karma-9a at 2007-7-12 10:32:34 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks for your kind reply...I have done everything whatever you told early but my problem is, No cookie has been found in result page. can you tell me, please
Thilagavathia at 2007-7-12 10:32:34 > top of Java-index,Java Essentials,Java Programming...