即 HTML 中用于 POST 命令的上下文根路径(context root)和 servlet 中的 servlet 变量路径。首先,我们将修改上下文根路径:
基于12个网页-相关网页
...入ServletContext.getRequestDispatcher()方法的路径名称必须以”/”开头 ,这里的”/”代表Web应用程序的起始位置(context root),也就是说必须是”绝对”路径。
基于12个网页-相关网页
Root Context 基础上下文 ; 根上下文
root application context 根应用上下文
Use root context in assembly 在装配中使用根上下文
应用推荐