• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using EL to get a session attribute, how to?

 
Rod Nichols
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, can the following be done using EL in a JSP :

session.getAttribute("org.myCompany.myApp.hasLoggedIn")

Thanks in advance !!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Rod Nichols
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear, worked like a charm. I was trying to go thru pageContext.session.["attributeName"], you can tell I am still learning
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pleasure .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!