在使用JqGrid的过程中,出现问题,麻烦看看 100
下面是我的jsp相关的代码:<scripttype="text/javascript">vargrid_selector="#grid-table";varpager_s...
下面是我的jsp相关的代码:
<script type="text/javascript">
var grid_selector="#grid-table";
var pager_selector="#grid-pager";
$(document).ready(function(){
$("#grid-table").jqGrid({
url:"UserServlet",
editurl: "UserChangeServlet",
datatype:"json",。。。。。。(后面省略)
下面是我的servlet的web.xml配置
<servlet>
<servlet-name>UserServlet</servlet-name>
<servlet-class>servlet.UserServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>UserChangeServlet</servlet-name>
<servlet-class>servlet.UserChangeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserServlet</servlet-name>
<url-pattern>/UserServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserChangeServlet</servlet-name>
<url-pattern>/UserChangeServlet</url-pattern>
</servlet-mapping>
然后启动服务器,报错:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
The servlets named [UserChangeServlet] and [servlet.UserChangeServlet] are both mapped to the url-pattern [/UserChangeServlet] which is not permitted
要全部源码文件的,追问下我。
然后希望可以花点时间看看,网上对这个的解决好像没有,求详细看看。谢谢大家了。 展开
<script type="text/javascript">
var grid_selector="#grid-table";
var pager_selector="#grid-pager";
$(document).ready(function(){
$("#grid-table").jqGrid({
url:"UserServlet",
editurl: "UserChangeServlet",
datatype:"json",。。。。。。(后面省略)
下面是我的servlet的web.xml配置
<servlet>
<servlet-name>UserServlet</servlet-name>
<servlet-class>servlet.UserServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>UserChangeServlet</servlet-name>
<servlet-class>servlet.UserChangeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserServlet</servlet-name>
<url-pattern>/UserServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UserChangeServlet</servlet-name>
<url-pattern>/UserChangeServlet</url-pattern>
</servlet-mapping>
然后启动服务器,报错:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
The servlets named [UserChangeServlet] and [servlet.UserChangeServlet] are both mapped to the url-pattern [/UserChangeServlet] which is not permitted
要全部源码文件的,追问下我。
然后希望可以花点时间看看,网上对这个的解决好像没有,求详细看看。谢谢大家了。 展开
1个回答
启帆信息
2024-11-19 广告
2024-11-19 广告
启帆信息是英伟达中国区代理商,原厂授权代理,提供全面的软件技术解决方案以及NVIDIA以太网产品、交换机等产品,欢迎前来咨询!...
点击进入详情页
本回答由启帆信息提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询