jsp页面获取当前登录用户信息

<tr>
			<th>所在处室</th>
			<td >
				<input type = "text" name = "unitName" placeholder = "所在处室" autocomplete = "off"
					   value = "${cp:MAPVALUE('unitCode',sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.currentUnitCode)}"
					   class = "layui-input" readonly >
				<input type = "hidden" name = "applyUnitcode"
					   value = "${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.currentUnitCode}" >
			</td>
			<th>经办人</th>
			<td >
				<input type = "text" name = "userName" placeholder = "经办人" autocomplete = "off"
					   value = "${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.userInfo.userName}"
					   class = "layui-input" readonly >
				<input type = "hidden" name = "applyUsercode"
					   value = "${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.userCode}" >
			</td>
		</tr>

  

posted on 2022-02-23 11:04  IT-QI  阅读(628)  评论(0编辑  收藏  举报