java - SpringMVC不设置request.setAttribute也可以在jsp中的el表达式里取到值?
天蓬老师
天蓬老师 2017-04-18 09:26:36
0
4
492
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
巴扎黑

The search order of el expressions is, page, request, session, context
http://stackoverflow.com/questions/875024/how-does-el-search-for-an-attribute

大家讲道理

There are many ways to transfer page parameters in springmvc, such as modelAndVidew objects, modelMap objects, etc. There are many such articles or tutorials on the Internet. You might as well search on Baidu. The following article is http://blog.csdn.net/wp1603710463/ article/details/48248871 is estimated to meet the current needs of the subject.

Peter_Zhu

My feeling is that SpringMVC may automatically access the method parameters in the page.

小葫芦

Check if there is session level article.id

You can try using the following el expressions respectively:

${ session.article.id } 或者 ${ request.article.id }

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!