servlet在web.xml里是这样配置的
<servlet>
<servlet-name>UserServlet</servlet-name>
<servlet-class>houserent.web.UserServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserServlet</servlet-name>
<url-pattern>/UserServlet</url-pattern>
</servlet-mapping>
但是在页面上调用时是这样 $.post(basePath + "/UserServlet?opr=login", jsonUser,
loginFail, "text");中间不是少了个WEB-INF文件夹吗?
yanrun
iMcLaren
相关分类