Versions Compared

Key

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

The example code for this tutorial, Exclude_Params_Struts2_Mvnexclude_parameters, is available on Google Code - httpfor checkout at https://codesvn.google.com/p/struts2-examples/downloads/listImage Removed. After downloading and unzipping the file, you'll have a folder named Exclude_Params_Struts2_Mvn. In that folder will be a README.txt file with instructions on now to build and run the example applicationapache.org/repos/asf/struts/sandbox/trunk/struts2examples/Image Added.

Introduction

When Struts development mode is set to true (also see Debugging Struts) the framework writes many informative messages to the log file. These messages include ones that indicate whether or not a specific parameter will be handled by the parameter interceptor and made available to the Action class. These log messages can be helpful in clearly identifying parameters that you do not want the parameter interceptor to process for security or other reasons. This article discusses how to exclude parameters from being handled by the parameter interceptor.

...