Accessing Spring beans from a Tiles view (JSP)

前端 未结 3 1335
逝去的感伤
逝去的感伤 2020-12-03 01:33

In Spring MVC I can access my beans in JSP using JstlView\'s exposedContextBeanNames (or exposeContextBeansAsAttributes). For example, then, in my JSP I can write (${propert

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 02:06

    Have you tried to use ServletContextAttributeExporter in xml configuration file?

    
        
            
                
                    
                
            
        
    
    

提交回复
热议问题