当前位置: 代码迷 >> JavaScript >> Jsp设立session
  详细解决方案

Jsp设立session

热度:115   发布时间:2012-10-23 12:12:22.0
Jsp设置session
1、
<%
	String bookcaseId = request.getParameter("bookcaseId");
	if (null != bookcaseId) {
		session.setAttribute("bookcaseId", bookcaseId);
	}
%>



2、
<%
	Retrieve retrieve = new Retrieve();
	String departid = null == request.getParameter("departid") ? ""
			: new String(request.getParameter("departid").getBytes(
					"UTF-8"));%>
  相关解决方案