That should work, as Select just extends MultiPartElement which extends
ConcreteElement which implements Cloneable.  Just out of curiosity can you
duplicate the problem outside the scope of your jsp page?

-stephan

"RESTREPO, ALEXANDER G [Non-Pharmacia/1000]" wrote:

> Hello:
>
> I have extended the Select list object and
> I am havin trouble cloning my new object.
>
> I have a class called DropDown which extends
> Select. i.e.,
>
> public class DropDown extends Select
> {
>    blah blah.....
> }
>
> When I do try to clone the DropDown object
> I created I get an error at runtime in my JSP.
>
> DropDown originalDropDown    =  new DropDown("TEST");
> Option option1               =  new Option("Option 1");
> Option option2               =  new Option("Option 2");
> Option option3               =  new Option("Option 3");
> Option option4               =  new Option("Option 4");
> DropDown.addElement(option1);
> DropDown.addElement(option2);
> DropDown.addElement(option3);
> DropDown.addElement(option4);
> DropDown newDropDown         =  originalDropDown.clone(); <---THIS IS WHERE
> I GET THE ERROR
>
> Cloning the original Select object does not cause any problems..i.e.,
>
> Select clonedSelect = origSelect.clone();
>
> Could someone give me some insight in what I am doing wrong?
>
> Many Thanks:
>
> Alex Restrepo


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

Reply via email to