How to control PrettyFaces filter loading in Servlet 3.0

Splash Forums PrettyFaces Users How to control PrettyFaces filter loading in Servlet 3.0

This topic contains 2 replies, has 2 voices, and was last updated by  Lincoln Baxter III 3 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24477

    Marcin Kapusta
    Participant

    Is there any way to controll filter loading in Servlet 3.0 enviorment?
    I have several filters that mus go after PrettyFaces filter and one to go before.

    In Servlet 3.0 the Pretty Faces filter load automaticlly. If You specify filter and filter-mapping in web.xml then The filter loads twice. How I can disable automaticly loading of this filter to take controll of it in web.xml?


    Regards
    Marcin

    #24478

    Marcin Kapusta
    Participant

    Ok. I found the solution.

    I only neet to define filter-mapping element in desired order.
    The filter name must be Pretty Filter.

    
    <filter-mapping> 
      <filter-name>Pretty Filter</filter-name> 
      <url-pattern>/*</url-pattern> 
      <dispatcher>FORWARD</dispatcher> 
      <dispatcher>REQUEST</dispatcher> 
      <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    
    #24481

    Yep! That’s right 🙂 Thanks for posting the solution.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.