When you make a bean which extends javax.httpServlet , does this bean
then has the same capebilitys as a servlet? I mean: has it the same
multiThreated system? (created once, multiple threads afterwards)
Is it a good idea to let my beans do a lot of work en then use a
JSP-page to make
ation and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark
MinnoyeSent: Tuesday, March 02, 1999 3:21 AMTo:
[EMAIL PROTECTED]Subject:
ServletBeans
When you make a bean which extends javax.httpServlet , does this
bean then has the same capebilitys as a servlet? I mean
I don't understand:
I assume when you write a bean that extends a HttpServlet, only the
service() doPost() and doGet() methods are treated as concurrent threads.
But when i add other methods like 'doQuery(int Id)' which i call from a JSP-Page
('<% myBean.doQuery(5); %>) i assume that this
an be referenced as
you wish.
That's the model we use. It isn't the only way.
Dan
> --
> From: Mark Minnoye[SMTP:[EMAIL PROTECTED]]
> Reply To: Mark Minnoye
> Sent: Tuesday, March 02, 1999 9:33 AM
> To: [EMAIL PROTECTED]
> Subject:
Mark,
a Bean extending HttpServlet is what the JSP 0.91 Spex talks about:
---cut
Also if the bean happens to implement the Servlet interface, the service
method of the servlet is called for each request and the init method is
called once per creation.
---cut
So its not doing a servlet's work, bu
with 0.92, there is another thing to know:
> -
> On the other side, under 0.92 the situation is a bit different, I
> think: the
> JSP page can pass its request object via (or the session
> itself), so there is another way to get there without a ServletBean with
> 0.92.
I wasn't right on tha
Hi,
I'm trying to write a ServletBean that communicates with my connection
pool and can be instantiated in a JSP page. Does anyone know if JRUN
supports ServletBeans? I'm able to access simple methods in my bean but as
soon as I try to access the servlet context (containing a re
> I'm able to access simple methods in my bean but as
> soon as I try to access the servlet context (containing a reference to my
> pool), I'm getting null pointer exceptions.
>From the JSP page, pass to the bean a reference to the servlet context,
or perhaps you'd would want to send the request