使用< c:redirect>在春季标记 [英] using <c:redirect> tag in Spring

查看:59
本文介绍了使用< c:redirect>在春季标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在显示一个jsp.在该JSP中,有一个标签,用这种方式:

So, I am displaying a jsp. Inside that JSP, there is a tag, this way:

<c:redirect url="step1.jsp"></c:redirect>

原始JSP在myProjName/src/main/webapp//WEB-INF/views内部.我想重定向到的JSP也位于该文件夹中.但是Tomcat无法找到它.我必须在代码中设置什么正确的路线?

The origin JSP is inside myProjName/src/main/webapp//WEB-INF/views. The JSP I want to redirect to is inside that folder, too. But Tomcat cant find it. What's the proper route I have to set in my tag?

谢谢.

推荐答案

您所坐的URL是什么样的(浏览器中显示的出现错误的URL)?

What does the URL that you are sitting on look like (the one displayed in your browser that is failing with the error)?

我猜你已经尝试过了:

?

这篇关于使用&lt; c:redirect&gt;在春季标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆