Michael and Jeanne,
Thank you for your responses. Jeanne, You were right, my problem was with the scope. I will try to find another way around declaring it within the if statement. Unfortunately, all the other fields are bases on which entity is initialized.Both entities have similiar fields for example:
anEntity.getTime()
anEntity.getLocation()
My entities are declared (within the if statement) as Entity1 anEntity and Entity2 anEntity, so either way, anEntity would work.Can you think of another was to initialize the entity, keeping in mind that the entity should be initialized based on the radio button selected in the jsp.
Any assistance is greatly appreciated.
Thanks,
Anna