Repopulate ArrayList from JSP with Struts 2

后端 未结 3 1882
抹茶落季
抹茶落季 2020-12-04 03:24

This is the form I am using to repopulate the ArrayList

3条回答
  •  半阙折子戏
    2020-12-04 03:54

    Unexpected Exception caught setting 'quizItem.question' on 'class quiz.actions.QuizTemplateAction: Error setting expression 'quizItem.question' with value '[Ljava.lang.String;@1b3409f'

    You are trying to send all the questions (attribute) descriptions into the first Question (object) as a List, because you are not specifying the index (as you correctly do with in your other questions... ?!).

    Change this

     
    

    To this

    
    

    To send a single String to each correspondent Question object, instead of a List to the first Question object.

提交回复
热议问题