Struts does not serialize and deserialize complex objects for you. If
you need to serialize vector into string and to deserialize it back
you need to do it yourself.
Another approach is to keep the vector in the session instead of
sending it to client and then back to server.
On 6/7/06, Maya men
Can anyone please help here ?
1. request.setAttribute -> sets a vector in Action class 1
2. In jsp, displays the values in vector using iterate tag and theres a
hidden field with value as values in vector. In this jsp, the next .do is
getting called like
3. In the next action class
Yes, regarding this:
I want to get the value and again create a vector out of it. Also, I am going
to the next page with a link, < ahref=""?data=/>
Like String values = request.getParameter("data"); //This gives objects.
I get the string. Now I want to make a vector of it and the
In the action where the form is submitted you call request.getAttributr("data")
as the input hidden type's name is data
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values
I tried storing vector va
4 matches
Mail list logo