开发者

Is it possible to get a session variable for a jsp without an ActionBean?

开发者 https://www.devze.com 2023-03-29 07:34 出处:网络
I 开发者_如何学Gohave map stored in session (MyActionBeanContext) that needs to be retrieved for header.jsp

I 开发者_如何学Gohave map stored in session (MyActionBeanContext) that needs to be retrieved for header.jsp

However, since header.jsp is embedded on many other jsp's, it is not connected with any ActionBean so I can't simply call ${actionbean.context.map}

Is there a way at getting the map from my header.jsp? If not, what would be the best way to proceed?

Thanks!


I found out the answer is to use ${sessionScope.map}

0

精彩评论

暂无评论...
验证码 换一张
取 消