|
|
OpenCms的请求连接形式类似这样
http://localhost:8080/opencms/opencms/sites/default/index.html
特殊的地方,第一个opencms是你的web项目的名字,第二个opencms是OpenCms默认的servlet
名字,其后的字符串在操作的时候作为参数传递。
欲修改OpenCms默认的servlet:
先看一下web项目下的web.xml文件,其开始部分有一段注释
<!-- Changing the servlet name from "opencms" to something else requires 2 changes in this file. For example, to change the servlet name to "mycms" you must: 1. Change the <context-param> called "OpenCmsServlet" from "/opencms/*" to "/mycms/*" 2. Change the <servlet-mapping> for "OpenCmsServlet" from "/opencms/*" to "/mycms/*" -->
所以改动的时候注意,必须改动这两个地方。 |
|