populating beans
okay, so im a little confused on how to populate a bean from a servlet. do i have to use a the scope session if i want to call it from a jsp file?
or can it be application or request?
session is the only way i could get it to work, so if it works with a different scope, could somebody paste some example code?
You can get the bean from any scope, just decide where you need it:
Application: Every user will have access to the same bean instance (Application wide information)
Session: Each user has her/his own copy. (User info)
Request: The bean exists only as long as the request is alive. That's from the moment it gets to the application server to the last line of the last ServletFilter defined for the resource.
Page: It exists only from the moment it is declared on the jsp(/servlet? need clarification please) to the last line of the declaring jsp/servlet
Hope this helps :-)