Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB and other Java EE Technologies and the fly likes JavaBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JavaBeans" Watch "JavaBeans" New topic


Chris Stewart
Ranch Hand

Joined: Sep 14, 2002
Posts: 184
Does anyone know what I need to add to my web.xml file to "recognize" a JavaBean in my web app? I'd like to use it as a session scoped bean.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to the "EJB and Other J2EE Technologies" forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
You don't have to put anything in the web.xml to put a bean in the session. Just do it.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: JavaBeans
It's not a secret anymore!