Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get <aop:scoped-proxy/> that is session scoped inside of a jsp

Tags:

java

spring

jsp

I have my user session stored as an <aop:scoped-proxy/> proxy. how would i go about accessing it on the jsp?

i am assuming that the bean is stored somewhere in the session, correct me if i am wrong.

like image 891
mkoryak Avatar asked Dec 15 '25 09:12

mkoryak


1 Answers

i found an answer:

http://digitaljoel.nerd-herders.com/2010/11/01/accessing-spring-session-beans-in-jsp/

in short:

${sessionScope['scopedTarget.userSession'].firstName}

works like a charm

like image 91
mkoryak Avatar answered Dec 17 '25 00:12

mkoryak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!