Hi David,
I have now added a questionType attribute to the question class which will help me determine which subclass to instantiate....
But i am still struggling with creating the Type Converter...
I followed Ankit's advice and created a class QuestionTypeConverter which extends StrutsTypeConverter
When i configure TestAction-conversion.properties with
name=test.MyQuestionConverter
It works fine, but to intercept the arraylist it just doesnt seem to go through to the converter..
I tried using
questions=test.MyQuestionConverter
Element_questions=test.MyQuestionConverter
questions[]=test.MyQuestionConverter
I also tried
com.blah.Question=test.MyQuestionConverter
This also does not seem to work...
One More question here... I am using generics for the List declarations in the model class..
List<Question> questions = new ArrayList<Question>();
Does this in any way affect calling of the converter?