954,206 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ArrayList is best ,why

i am intersted to send group object from one jsp to another.
In this case can i use vector or arraylist. then why?

ramakrishna172
Newbie Poster
4 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

Can you please explain what you are referring to a little better?

Vector was like an array that grew as needed, but its performance is not very good, since linkedlist has been enhanced and performance is better, many professionals who have tested these recommend the use of a linkedlist over Vector pretty much all the time...

Now if you wish to pass objects between JSP pages it really depends on how you are working, there are many ways... 1 way is to create a bean that holds the data or objects and then store the bean in a scope, request, session or application which ever is right... you can also place objects in the scope too but it is considered sloppy to place lots of objects into a scope without organizing them into 1 cohesive object... like a bean...

If you forward the request to another page, you can add an object to the request scope and it will die once the response is sent to the user...

Sorry, I can't give you more specific details without more direct knowledge of what you are trying to do...

Peace,

rgtaylor
Junior Poster in Training
88 posts since Mar 2007
Reputation Points: 10
Solved Threads: 2
 

can i pass the group objects on internet,so can i prefer arraylist or vector

ramakrishna172
Newbie Poster
4 posts since Apr 2007
Reputation Points: 10
Solved Threads: 0
 

See I am not sure what you mean there... could you please explain a little more?

rgtaylor
Junior Poster in Training
88 posts since Mar 2007
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You