请求调度程序问题 [重复]

Request Dispatcher Issue [duplicate]

提问人:Alcon Blue 提问时间:7/18/2023 更新时间:7/18/2023 访问量:12

问:

在我的Tomcat目录中,我将UserSignup.class的编译java servlet放在WEB-INF/classes/com/mycompany/app/中。

在myapp的根目录中,我有WEB-INF文件夹和其他源文件(index.html,style.css,app.js,jQuery.js,Dashboard.html,Dashboard.css,Dashboard.js)。我正在使用 @WebServlet(“/Signup”) 注释,所以我没有 web.xml。

我正在使用 ajax 调用 servlet 并在 servlet 中使用 RequesteDispatcher 对象将请求转发到 (“/Dashboard.html”),但由于某种原因它没有转发它。这里出了什么问题?我的方法不正确吗?

Java Ajax Tomcat Servlet

评论


答: 暂无答案