JAVA/JAVA&JSP

[ JSP] Url Rewrite Filter

saltdoll 2008. 4. 3. 11:16
반응형
JSP에서 URL을 Rewriter를 이용하기 위한 모듈입니다.


Url Rewrite Filter
( http://tuckey.org/urlrewrite/ ) 

- 4.0버전 나옴 (2012.08.09)

Binaries

Stable 2.6
urlrewritefilter-2.6.zip
200kb - md5

Beta 3.0.4
urlrewritefilter-3.0.4.zip
200kb - md5 - changelog

  1. Download the zip and extract it into your context's directory ie, so that urlrewrite.xml goes into the WEB-INF directory.
  2. Add the following to your WEB-INF/web.xml (add it near the top above your servlet mappings (if you have any)): (see filter parameters for more options)
  3. <filter>
        <filter-name>UrlRewriteFilter</filter-name>
        <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

  4. Add your own configuration to the WEB-INF/urlrewrite.xml that was created.
  5. Restart the context.

You can visit http://127.0.0.1:8080/rewrite-status (or whatever the address of your local webapp and context) to see output (note: this page is only viewable from localhost).

Source

Stable 2.6
urlrewritefilter-2.6-src.zip
1.5mb - md5

Beta 3.0.4
urlrewritefilter-3.0.4-src.zip
1.5mb - md5 - changelog

Mentions

This filter has been mentioned at: Transparently Feedburning Pebble with UrlRewriteFilter, heute-morgen.de (parametrized View State with JSF), Erik Isaksson's Blog (sample rules), Magician (use with forumnuke, in Chinese), Russell Beattie's Notebook.


반응형
도움이 되셨다면 하트모양의 "♡ 공감"을 눌러주시면 큰 격려가 됩니다.
(로그인하지 않으셔도 가능)