码迷,mamicode.com
首页 > Web开发 > 详细

jsp用el表达式获取后台传来的值,或者获取session中的值

时间:2018-12-13 19:14:25      阅读:1538      评论:0      收藏:0      [点我收藏+]

标签:ppi   cas   ret   lan   ring   jsp   name   ase   put   

<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中的值

标签:ppi   cas   ret   lan   ring   jsp   name   ase   put   

原文地址:https://www.cnblogs.com/daihu/p/10115291.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!