1.在与java、resources同级目录下建一个webapp/jsp文件夹来存放jsp代码,须要配置pom.xml
2.配置application.properties
3controller中直接return “info”;就会返回jsp文件夹中的info.jsp页面
<%@ page contentType=34;text/html;charset=utf8"%>
<%@ page import="java.util.Properties" %>
<%
HttpSession session1=request.getSession();
//String option="公司:<select name=displtd onchange=disp(this.value)>";
String id=session1.getId();
String id1=session.getId();
%>
<html>
<body >
<%=id %>
<%=id1 %>
<%
System.out.println("====start======");
String oabusyname1 = (String) session1.getAttribute("oabusyname");
System.out.println("==================oabusyname1======="+oabusyname1);
out.println("==================oabusyname1======="+oabusyname1);
oabusyname1 = (String) request.getSession().getAttribute("oabusyname");
System.out.println("==================oabusyname1======="+oabusyname1);
out.println("==================oabusyname1======="+oabusyname1);
%>
</body>
</html>