ArrayList is best ,why

Reply

Join Date: Apr 2007
Posts: 4
Reputation: ramakrishna172 is an unknown quantity at this point 
Solved Threads: 0
ramakrishna172 ramakrishna172 is offline Offline
Newbie Poster

ArrayList is best ,why

 
0
  #1
Apr 13th, 2007
i am intersted to send group object from one jsp to another.
In this case can i use vector or arraylist. then why?
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 83
Reputation: rgtaylor is an unknown quantity at this point 
Solved Threads: 2
rgtaylor rgtaylor is offline Offline
Junior Poster in Training

Re: ArrayList is best ,why

 
0
  #2
Apr 13th, 2007
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,
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 4
Reputation: ramakrishna172 is an unknown quantity at this point 
Solved Threads: 0
ramakrishna172 ramakrishna172 is offline Offline
Newbie Poster

Re: ArrayList is best ,why

 
0
  #3
Apr 13th, 2007
can i pass the group objects on internet,so can i prefer arraylist or vector
Last edited by ramakrishna172; Apr 13th, 2007 at 4:18 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 83
Reputation: rgtaylor is an unknown quantity at this point 
Solved Threads: 2
rgtaylor rgtaylor is offline Offline
Junior Poster in Training

Re: ArrayList is best ,why

 
0
  #4
Apr 13th, 2007
See I am not sure what you mean there... could you please explain a little more?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC