shortviewurlconstructor.txt

来自「wiki建站资源 java编写的 很好用」· 文本 代码 · 共 24 行

TXT
24
字号
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].

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?