They are different...they are different...
But If they're different why do I get the same session object from servlet and jsp 
page ??? I find this is contradictory to what I read in JSP1.0 specs.

org.gjt.???.ServletContextWrapper@someaddress = this is from JSP page.
apache.Jserv.???.ServletContext@anotheraddresss = this is from servlet.
(soryy I forget the exact fully qualified classname).

I post similar message to GnuJSP maillist. But until now, nobody answer.

Please help me
-raka-
Well, umm... maybe a little trick will do.
For each client, he will have a reference to ChatroomHubBean instance in it's session 
(It is put there via session.putValue("chatroomHub", chatroomHub). Then in servlet, 
maybe I can do :  ChatroomHubBean 
chub=(ChatroomHubBean)req.getSession(false).getValue("chatroomHub");

But it wouldn't have been this way if only the application scope object access 
mechanism worked perfectly (as it is written in FAQ or programming tips).
--

On Tue, 27 Jun 2000 05:57:00
 Cokorda Raka Angga Jananuraga wrote:
>Sorry guys,
>I made a mistake.
>I've just done a more careful check.
>They're different entities (the servlet context that I get from servlet and the 
>servlet context from my jsp --- the application implicit object).
>I've just printes their Object ID. They're different.
>
>Now, please let me refine my question :
>What to do to put them together (the bean and the servlet) in the same servlet 
>context ?
>
>I'm using GnuJSP 1.00, Jserv 1.1.1, and IBMJDK 1.1.8, and Linux RedHat6.2.
>
>Thanks
>-raka-


Send FREE Greetings for Father's Day--or any day!
Click here: http://www.whowhere.lycos.com/redirects/fathers_day.rdct

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to