GeeCON Prague 2014*
The moose likes Servlets and the fly likes scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "scope" Watch "scope" New topic
Author

scope

Ben Klug
Ranch Hand

Joined: Jan 28, 2002
Posts: 45
hi,
how can i share a bean of a session with a servlet, Like I do it in a jsp? In the jsp it lookes like that:

Thanks!
Ben
Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
you can set attributes in your session (request and application) by calling setAttribute(String name, Object object).
HttpSession can be obtained from the request.
Ruud.
 
GeeCON Prague 2014
 
subject: scope