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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.1.2
    • Fix Version/s: 2.3.8
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: