Mark,
I don't think you should be creating beans that extend HttpServlet. Extend
HttpServlet to create a servlet that you use to populate a bean (which might
extend an object like Vector or Hashtable for example), and then pass the
bean to the JSP file (setAttribute / <BEAN>) so that it can 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: ServletBeans (2)
>
> <<File: ATT165615.gif>>
> 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 method isn't run
> as concurent thread --and you lose system performance.
>
> What i want to do is this: create a bean that's capeble of fetching,
> adjusting and storing data from a certain entitie into a relational
> DBase. By the use of the bean's set & get -methods i can set/get the
> values, and then by the fetch()/adjust()/store() -methods i could do the
> rest.
>
> Has anyone made/seen such a model?
> Is this a correct aproach? --extending the HttpServlet
> When i want to make use of the javax-API --sessions ed-- should i make use
> of the service(@;@)-method or just make a custom method :
> 'myMethod(HttpRequest req)'.
> It all seems/is very unclear to me.
>
> Regards,
> Mark
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".