This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes struts+jsp+netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts+jsp+netbeans" Watch "struts+jsp+netbeans" New topic
Author

struts+jsp+netbeans

meruva surendra
Greenhorn

Joined: Jul 28, 2013
Posts: 24
I want to know how to get the values from the session?how to use and print that?
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

Short answer: expression language (EL). You can read about it in the Java EE Tutorial. There's a page of examples here. The example for getting a value from the session scope is ${sessionScope.cart.numberOfItems}, where ${sessionScope.} is built-in syntax, and cart.numberOfItems is specific to the example application.
meruva surendra
Greenhorn

Joined: Jul 28, 2013
Posts: 24
Thank you charles
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

It's Greg actually, but you're very welcome!
 
jQuery in Action, 2nd edition
 
subject: struts+jsp+netbeans
 
Similar Threads
http-method not specified
Clock problem
thanks!!! another SCJP born~
Security Constraints
Args in Netbeans