944,028 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 3982
  • JSP RSS
Apr 13th, 2007
0

ArrayList is best ,why

Expand Post »
i am intersted to send group object from one jsp to another.
In this case can i use vector or arraylist. then why?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ramakrishna172 is offline Offline
4 posts
since Apr 2007
Apr 13th, 2007
0

Re: ArrayList is best ,why

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,
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
rgtaylor is offline Offline
83 posts
since Mar 2007
Apr 13th, 2007
0

Re: ArrayList is best ,why

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ramakrishna172 is offline Offline
4 posts
since Apr 2007
Apr 13th, 2007
0

Re: ArrayList is best ,why

See I am not sure what you mean there... could you please explain a little more?
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
rgtaylor is offline Offline
83 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Combobox Woes
Next Thread in JSP Forum Timeline: <%@include file>





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC