Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory. No other files need to be copied or created.

  • Add new xml file in current Action class with filename like
    "<ActionName>-jspObjectMapping.xml"
  • XML File format given below

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapping [
<!ELEMENT mapping (requestParameter)>
<!ELEMENT requestParameter (objectMapping)>
<!ELEMENT objectMapping (property)>
<!ELEMENT property (#PCDATA)>
]>

e.g.

<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<requestParameter name="userName">
<objectMapping>
<property>user.userName</property>
</objectMapping>
</requestParameter>
<requestParameter name="password">
<objectMapping>
<property>user.password</property>
</objectMapping>
</requestParameter>
</mapping>

  • Extends package with name "jsp-parameter-object-mapping"
  • Add interceptor on interceptor stack

    <interceptor-ref name="parameterToActionObjectMapping" />

Resources

  • Links to any other documentation or related products

...