Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc 如何在另一个.jsp页面中进行相对MVC控制器/视图调用?_Spring Mvc - Fatal编程技术网

Spring mvc 如何在另一个.jsp页面中进行相对MVC控制器/视图调用?

Spring mvc 如何在另一个.jsp页面中进行相对MVC控制器/视图调用?,spring-mvc,Spring Mvc,我有一个/views/home/index.jsp,它有一个从另一个控制器调用另一个页面的链接 views/home/index.jsp(http://localhost:8080/mywebsite/homeper@Atais: “没有斜杠吗?那么它将解析localhost:8080/mywebsite/home2地址”没有斜杠吗?那么它将解析address@Atais:Thx,真管用! <li><a href="${pageContext.request.contextPa

我有一个/views/home/index.jsp,它有一个从另一个控制器调用另一个页面的链接

views/home/index.jsp(
http://localhost:8080/mywebsite/home
per@Atais:


“没有斜杠吗?那么它将解析localhost:8080/mywebsite/home2地址”

没有斜杠吗?那么它将解析address@Atais:Thx,真管用!
<li><a href="${pageContext.request.contextPath}/home2" target="_blank">home2</a></li>
href="${pageContext.request.contextPath}/home2" 
href="/home2"