20030102 Thursday January 02, 2003

RE: ArrayList vs. Vector - which is better for webapps? What the hell was I thinking?! I must've been tired this morning when I wrote the last post. I meant to say Serializable not Synchronized!! Yikes - what a blunder! Does this change your feelings? What if I have a UserForm (extends ActionForm) that has an ArrayList of children? I usually put a user's Form in the session, so I can access their information at any time. Posted in Java at Jan 02 2003, 08:19:16 PM MST 1 Comment

Comments:

According to the Struts API documentation (both 1.0.2 and 1.1) "An ActionForm is a JavaBean... Such a bean will have had its properties initialized from the corresponding request parameters". My rather superficial understanding of this statement is that there is one ActionForm instance per request which obviates any synchronization concerns for that instance's state (the "ArrayList of children"). Some peculiar application logic can, of course, make this conclusion false but the control of such logic is the application developer's responsibility. Have a good day :)

Posted by Paul Yunusov on January 03, 2003 at 09:20 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is the Lead UI Architect at LinkedIn. The opinions on this site are mine, not my employers.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud