This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I retrive the value from the field and set it to a new cookie.
And then I disply the value after retriving it in FirstResult.java
But when for the first time the application is run, no value is displayed on the page. And when I refresh or run the application again the get the previous value from the field.
Why is it so? I have tried all alternatives and have come to the conclusion that for the first time the value of the cookie is not set. But to over come this confusing state I have used the FirstRequest.java controller servlet.But still I do not get a solution. Please help.
[ September 23, 2008: Message edited by: Sudipto Shekhar ]