I am getting this problem and unfortunatelly search
tool for the list is off line right now. 

So, I am trying to populate the form with general
options before submitting. I am doing something like
this, right off the struts HOW TO

    <html:select property="colorSelected">
      <html:options property="colorOptions"
name="orderEntryForm"/>
    </html:select>

where colorSelected is a String with getter and setter
in the orderEntry form bean, and colorOptions is being
returned by a getter in the same bean as an ArrayList.
Something like this:

  public ArrayList getColorOptions() {
      colorOptions.add("red");
      colorOptions.add("green");
      return colorOptions;

When I try to run it, I get
ConcurrentModificationException which as an exception
is not always accurate but usually means that one
thread tried modifying the List while anohter one was
iterating. What am I doing wrong? Could someone point
me in right directions or maybe show an example.
Thank you very much.

Fedor

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to