instance « Bean « JSP-Servlet Q&A

1. use bean instance in servlet

The scope of the bean u have declared in the jsp decides how u can fetch it in the servlet. if the scope is request and the id of bean is "xBean" u can retrive it using (TypeCast)request.getAttribute("xBean"); or if the scope of bean is session in jsp the same can be retrived from (TypeCast)session.getAttribute("xBean"); Devesh

2. beans instance

Hello! Well, in a jsp page: It is possible to make YYY.ColaboradorAtividade extend YYY.Atendimento? Im asking this because when I am using colAtv some at attributes are null. Im trying to save some bd connections and avoid duplicated code. Its possible to make this? Thanks for your atttention, Rafael.

3. Stateful bean and instance pooling

5. Bean Browser Instance