Provides classes that work with the Spring Framework to process HTTP requests and to then redirect appropriately. To create a new Wiki page the following steps should be followed:
- Modify the
/WEB-INF/jamwiki-servlet.xml file to add a mapping and a servlet handler.
- The mapping is the URL pattern. For example
<prop key="/**/Special:MyPage">MyHandler</prop>.
- The handler links the mapping with a servlet. For example:
<bean id="MyHandler" class="org.jamwiki.servlets.MyServlet" />.
- Make sure JAMWiki recognizes the page as an existing special page by adding a pseudotopic entry to
/WEB-INF/classes/jamwiki-configuration.xml.
- Create the servlet specified in the
jamwiki-servlet.xml file (org.jamwiki.servlets.MyServlet). The servlet should extend {@link org.jamwiki.servlets.JAMWikiServlet}.
- Create a JSP for the page display. Within your servlet the {@link org.jamwiki.servlets.WikiPageInfo#setContentJsp} method should be called to link the new JSP page with your servlet.