How to jump from one page to another in Java

For example:
Insert picture description here
Click the New button to jump to the role adding page and
Insert picture description here
use the following code to complete

<button type="button" class="btn btn-default" title=
"新建" onclick="location.href='${pageContext.request.contextPath}/pages/role-add.jsp'">
<i class="fa fa-file-o"></i> 新建
</button>

It is not easy to organize a blog, if you feel good, please give it a thumbs up! ! !

Guess you like

Origin blog.csdn.net/fxwentian/article/details/113995958