Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Reusable logic with portlet ... > Validating requests with portlet fil...

13.5. Validating requests with portlet filters

The UtilityFilter checks that a portlet’s action method is invoked via the HTTP POST method and that the portlet class makes use of the @ProcessAction annotation to identify an action method. If a portlet uses the @ProcessAction annotation, the action request will contain a parameter named javax.portlet.action.

If UtilityFilter finds that the HTTP method is GET, it displays the following warning message: “WARNING: Action request makes use of GET HTTP method.” If UtilityFilter finds that the javax.portlet.action request parameter isn’t present in the action request, it displays the following warning message: “WARNING: Action request doesn’t contain javax.portlet.action parameter. Are you using annotations?”


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint