jsp用el表达式获取后台传来的值,或者获取session中的值
Posted 博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jsp用el表达式获取后台传来的值,或者获取session中的值相关的知识,希望对你有一定的参考价值。
<script type="text/javascript"> var usernameC = ${sessionScope.SESSION_USER_PROFILE.accountId}; var caseId = "${caseId}"; var taskId = "${taskId}"; var uuid = "${uuid}"; </script>
后台控制层代码:
@GetMapping(value = {URI_FILE_CASE_PANEL_AUDI, URI_FILE_CASE_PANEL_AUDI_HTM}) public ModelAndView indexFile(@RequestParam(value = "caseId", required = false) Long caseId, @RequestParam(value = "taskId", required = false) String taskId, @RequestParam(value = "uuid", required = false) String uuid) { LOGGER.info("enter file case audit panel,caseId:{},taskId:{}", caseId, taskId); ModelMap map = new ModelMap(); map.put("caseId", caseId); map.put("taskId", taskId); map.put("uuid", uuid); return new ModelAndView(FWD_FILE_CASE_PANEL_FILE_CASE, map); }
以上是关于jsp用el表达式获取后台传来的值,或者获取session中的值的主要内容,如果未能解决你的问题,请参考以下文章