Augustin Smith wrote:I have this in my JSP ...
This is 2009. Why is there
Java code in your JSP? Scriptlets have been discredited since 2002. One of the biggest problem-makers in web apps, is inappropriate placement of code,
If I need to do as I want I need to store the comments in session object.
But its expensive and not adivsable right, storing huge data in session object.
Wrong. It's not inadvisable to use the session; it's inadvisable to use it unwisely. Placing data in the session and then removing it when no longer needed is fine.
Why aren't you just passing it as a hidden parameter?