Hi all,
Can anyone tell me what is the best way to maintain state between different client requests?
I used hidden form fields ,<
jsp:forward > and kept setting the variable in the request attributes:-
request.setAttribute("foo",request.getParameter("foo"));
Problem with this was whenever a new form was submitted the request
attributes were lost and needed to be reassigned via hidden form fields.
Should i use session.setAttribute instead to pass around variables?
Or is cookies a better option? How should i decide?
Thanks,
Pallavi.