Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3825

Struts2 (modeldriven) update method setting fields which do not exist on form to null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.3.1.2
    • 2.3.8
    • None
    • None

    Description

      Struts 2 sets the fields values to Null, if it doesn't exists on view/jsp.

      See below link.

      http://forums.devshed.com/java-help-9/struts2-modeldriven-update-method-setting-fields-which-do-not-exist-642900.html

      I am forced to put all non view fields as HIDDEN on JSP page, to have it values transferred.

      Is there a way to retain the values of non form fields without using HIDDEN.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            sam2012 Sam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: