Vijay<br />I blog, therefore I am<br /><a href="http://www.vijaykiran.com" target="_blank" rel="nofollow">www.VijayKiran.com</a>
Sarath Mohan
Can we kill a particular session object. I think we have to kill the entire session itself. which results in lost of other objects stored in session
Originally posted by Nilesh Srivastava:
.............(Performed some task)
.............
Vector vecHeaders = (Vector)request.getAttribute("vecHeaderName");
request.setAttribute("vecHeaders",vecHeaders);
Vector vecColumnNames = (Vector)request.getAttribute("vecColumnName");
(These are the two vectors which I passed from servlets to JSP using REQUEST object)
(Also I am setting one of the vectors in REQUEST object.)
...............
...............
<input type = "submit" name="port">
(Here I am posting the form to ADPPort which is mapped to a servlet.)
Originally posted by Nilesh Srivastava:
Now on Posting the form I am trying to retrieve the value in Servlet whose snippet is :
if (task.equals("portData"))
{
Vector vecHeaders = (Vector)request.getAttribute("vecHeaders");
System.out.println(vecHeaders); // Here I get null.
}
Originally posted by Nilesh Srivastava:
I cannot forward my request from JSP to this servlet untill post my form.
Originally posted by Nilesh Srivastava:
I dont want to use session objects because later on in my application, I ahve lots of such vectors to be passed from JSP to vectors... This way my session will get bulky.
Also, I had read somewhere that excessive use of session Objects results in lazy applications.