JSPWiki logo
Main page
About
News
Recent Changes
WikiEtiquette

Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences

Edit this page


Referenced by
ShortURLConstructor
URLConstructors




JSPWiki v2.2.14-beta


[RSS]

ShortViewURLConstructor


ShortViewURLConstructor replaces the Wiki.jsp page with a servlet at the /wiki/ servlet. This allows you to have URLs of the form http://www.example.com/JSPWiki/wiki/PageName, which can be useful in many ways.

ShortViewURLConstructor will attempt to guess your wiki location from your jspwiki.baseURL -setting, but if it gets it wrong, you can use the jspwiki.shortURLConstructor.prefix -setting to point at a different location.

Troubleshooting

If you get a 404 error when you're using this, check that your web.xml contains the following lines:

   <servlet>
       <servlet-name>WikiServlet</servlet-name>
       <servlet-class>com.ecyrd.jspwiki.WikiServlet</servlet-class>       
   </servlet>

   <servlet-mapping>
       <servlet-name>WikiServlet</servlet-name>
       <url-pattern>/wiki/*</url-pattern>
   </servlet-mapping>

Back to URLConstructors.




Go to top   Edit this page   More info...   Attach file...
This page last changed on 26-Mar-2006 00:48:48 EET by unknown.