| | |
ArrayList is best ,why
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 83
Reputation:
Solved Threads: 2
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,
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,
![]() |
Similar Threads
- Using operator[] with an ArrayList (Java)
- removing duplicates in arraylist (Java)
- Is ArrayList Better than Vector (Java)
- Storing Point2D.Double objects in an ArrayList. (Java)
- Need Help with ArrayList sorting (Java)
Other Threads in the JSP Forum
- Previous Thread: Combobox Woes
- Next Thread: <%@include file>
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





