java中sesson放值
HttpServletRequest request=null;
HttpSession session = request.getSession();
session.setAttribute("caseMainBack", caseMain);
jsp页面获取session的对象值
<c:if test="${ sessionScope.caseMainBack!=null }">
<input type="text" id="contactAddress" name="contactAddress" value="${ sessionScope.caseMainBack.contactAddress}"/>
</c:if>
java代码session取值
HttpServletRequest request=null;
HttpSession session = request.getSession();
String caseMainBack= (String) session.getAttribute("caseMainBack");