jsp java

java代码实现页面跳转:

    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
    response.sendRedirect(basePath + "/admin/admin.jsp");

你可能感兴趣的:(jsp java)