Jahia Dev Forum > to define servlet...

0 (0 Good)
0 (0 Bad)

to define servlet filter

by  bharatkasodariya »  2016/07/11 05:57

How to define servlet filter in jahia for redirecting some request url before processing it.

Tried  with implements Filter but not getting actual request uri in request object.

  • to define servlet filter
    2016/07/11 05:57

    bharatkasodariya <p>How to define servlet filter in jahia for redirecting some request url before processing it.</p> <p>Tried&nbsp; with implements Filter but not getting actual request uri in request object.</p>

  • Number of messages  57
    Registration date Jul 11, 2016
    0 (0 Good)
    0 (0 Bad)

    Re: to define servlet filter

    by  shyrkov »  2016/07/13 08:03

    Hello,

    could you, please, provide some details on your requirements?

    What kind of redirect would you like to do? If the redirect only depend on the URL type, perhaps a simple URL rewrite rule will be a more appropriate solution.

    Are you trying to implement the Servlet filter? Have you added its declaration and mapping into <dx-webapp-dir>/WEB-INF/web.xml file?

     

    Thanks in advance

    Kind regards

    Sergiy

  • Re: to define servlet filter
    2016/07/13 08:03

    shyrkov <p>Hello,</p> <p>could you, please, provide some details on your requirements?</p> <p>What kind of redirect would you like to do? If the redirect only depend on the URL type, perhaps a simple URL rewrite rule will be a more appropriate solution.</p> <p>Are you trying to implement the Servlet filter? Have you added its declaration and&nbsp;mapping into &lt;dx-webapp-dir&gt;/WEB-INF/web.xml file?</p> <p>&nbsp;</p> <p>Thanks in advance</p> <p>Kind regards</p> <p>Sergiy</p>

  • Number of messages  407
    Registration date Jul 13, 2016
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page