Skip to content

analogweb/servlet-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analog Web Framework Servlet Plugin

This plugin enable to run Analogweb's Route on Servlet 2.5+ container.

Integrate with Servlet container

In Servlet environment, you have to declear the Anaogweb Application in your web.xml.

<web-app>

  <servlet>
    <servlet-name>Analogweb</servlet-name>
    <servlet-class>org.analogweb.servlet.AnalogwebServletContainer</servlet-class>
    <init-param>
      <param-name>analogweb.packages</param-name>
      <param-value>com.foo.baa,org.hoge.fuga</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>Analogweb</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

</web-app>

you can also declear the Analogweb Application as a Filter.

<web-app>

  <filter>
    <filter-name>Analogweb</filter-name>
    <filter-class>org.analogweb.servlet.AnalogwebServletContainer</filter-class>
    <init-param>
      <param-name>analogweb.packages</param-name>
      <param-value>com.foo.baa,org.hoge.fuga</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>Analogweb</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

</web-app>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages