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);
}
上一篇:第十四,十五周PTA作业


下一篇:LeetCode 169 Majority Element 解题报告