This page (revision-1) was last changed on 23-Apr-2022 17:06 by UnknownAuthor

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 added 23 lines
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].