How to access Spring MVC model object in javascript file?

前端 未结 8 1134
南方客
南方客 2020-12-28 19:05

I am using spring 3 MVC and i have below classes.

External system would call my application using below URL:

http://somehost/root/param1/param2/param         


        
8条回答
  •  自闭症患者
    2020-12-28 19:31

       @RequestMapping("/op")
       public ModelAndView method(Map model) {
           model.put("att", "helloooo");
           return new ModelAndView("dom/op");
       }
    

    In your .js

    
    

提交回复
热议问题