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 then use the
<iterate> tag again.
If I just use vector.add(String) and then use iterate tag, it shows error
saying, no getter method found..
[EMAIL PROTECTED] wrote:
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 values in a hidden field.
[input] "/>
where data is a vector which I have set into the request type.
Now how will I retrieve it ?
Maya menon wrote:
Manoj,
In the vector I am storing a data object with 6 fields. I am using the iterate
tag to iterate thru the vector and display the results.
Thanks
[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents
is thread safe. ArrayList, on the other hand, is unsynchronized, making them,
therefore, not thread safe. With that difference in mind, using synchronization
will incur a performance hit. So if you don't need a thread-safe collection,
use the ArrayList. Why pay the price of synchronization unnecessarily?
Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the
pages (through actions) if the information is small you can use hidden values
to pass the values around which you want to manage
Cheers
-----Original Message-----
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values
Manoj,
Yes, I am storing a vector in request attribute. Using session attribute, I am
not feeling comfortable. Because the application can be accessed simultaneously
by lots.
So, In EditAction, is there a way to get the attribute from request ?
[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request
Set the attribute in session scope, and when you delete the record update the
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-----Original Message-----
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: 07 June 2006 14:52
To: [email protected]
Subject: Handling attribute values
Hi all,
1. I have an action class, DisplayAction which displays the records from
database. Here I am setting a vector into the request scope and on success
forwarding it to displayresults.jsp.
2. Display results.jsp displays all records with an option of delete to the
users.
3. Now, once user deletes the records, by going to editaction, on success it
should again display the displayresults.jsp. How will I get the attribute I set
in step one here again.
what path should I follow ?
DisplayAction -> displayResults -> EditAction
EditAction should again display displayResults and get the attribute set in
DisplayAction.
Please help
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com