Results 1 to 2 of 2

Thread: How do I use GenericFilterBean to require filter properties

  1. #1

    Default How do I use GenericFilterBean to require filter properties

    I'm try to use GenericFilterBean to set a required property in my ServletFilter. The problem is I'm not sure where I'm suppose to call the addRequiredProperty() method. In my subclasses constructor?

    In my example, I have servlet filter that specifies a param name of "urlPrefix" in the web.xml. My filter extends GenericFilterBean and I've added a setUrlPrefix(String) method. In the constructor I have:
    Code:
    {
     super();
     addRequiredProperty("urlPrefix");
    }
    But when I deploy my web application I get an error message. If I remove the addRequiredProperty, my filter starts okay, but the setUrlPrefix isn't called.

    What am I doing wrong?

    /Scott

  2. #2

    Default Found the problem

    Found the problem! It was between the keyboard and the chair. :oops:

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. Replies: 11
    Last Post: Jun 1st, 2006, 04:30 PM
  3. after login redirects incorrectly
    By ryan.tyer in forum Security
    Replies: 1
    Last Post: Oct 10th, 2005, 05:16 PM
  4. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  5. Replies: 5
    Last Post: Mar 18th, 2005, 04:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •