Skip to content

seo4ajax/java-s4a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-s4a is a Java EE filter for serving pre-rendered pages using seo4ajax.com.

Installation

  1. Copy the s4a-filter.jar file into the WEB-INF/lib folder of your project
  2. Add the following configuration in the WEB-INF/web.xml file of your project and replace SITE_TOKEN with the site token in SEO4Ajax
<filter>
  <filter-name>SEO4AjaxFilter</filter-name>
  <filter-class>com.seo4ajax.SEO4AjaxFilter</filter-class>
  <init-param>
    <param-name>siteToken</param-name>
    <param-value>SITE_TOKEN</param-value>
  </init-param>
</filter>
<filter-mapping>
  <filter-name>SEO4AjaxFilter</filter-name>
  <url-pattern>/*</url-pattern>
  <dispatcher>REQUEST</dispatcher>
  <dispatcher>FORWARD</dispatcher>
</filter-mapping>

License

The MIT License (MIT)

Copyright (c) 2020 Capsule Code

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.