我希望实现以下目标:
我的最新尝试看起来像这样(web.xml提取):/webapp-context/Page-1 -> Handled by my custom "ContentServlet" /webapp-context/Another-Page -> Handled by my custom "ContentServlet" /webapp-context/Page-with-long-title -> Handled by my custom "ContentServlet" /webapp-context/_cms/<something>.zul -> Handled by ZK framework
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.zul</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>myContentServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
很不幸,现在我的内容servlet处理所有请求(我以为更具体的模式优先?)。
如果我将我的内容servlet映射到模式“/webapp-context/content/*”,则不存在冲突,但这不是我想要的。
感谢您的时间。