Hi,

I'm still tring to find out how to have multiple browsers viewing a JSP /
HTML pages which access beans (which do the real database work).

At the moment if I use two browsers (IE / Netscape) or if I use browsers on
seperate computers the one bean seems to share data accross the different
browsers.

I do notice, however, that I get unique cookies from the WWW server hosting
JSP.  (Im using Apache 1.3.6 with mod_JSERV and GNU JSP on an NT platform).

Do I need to use the getSession(true) method of the HttpServletRequest
request in the JSP bean? This would be difficult - how do you provide
methods for the JSP page to access this session object outside of the
processRequest method?.  I dont think this is the correct fix for my
problem.

The funniest thing is that the example named "DummyCart.java" which comes
with Sun's jsp1.0 kit dos'nt have any of these complications - surely it
must suffer the same problems?

It is not a problem with the Apache set-up.  I had the same difficulty while
[previously] running the com.sun.web.shell.Startup cut-down development JSP
WWW server.

At this stage I'm tring to produce an ECommerce solution based on JSP.  All
has gone well bar this weird stuff.

Any help would be greatly appreciated,


Derek Conniffe


p.s. How about another weird problem which kept me staring at the screen for
an hour or so:

In Apache/mod_JServ/GNU JSP if you are calling a beans set methods you must
ensure that you use lower case lettering for the method name (after the get
bit) e.g. <a href="myPage.jsp?level=0">hello</a> where the beans method is
actually called setLevel - also it appears that you can only use one upper
case letter in the bean's method name e.g. setThecustomersnameis as opposed
to setTheCustomersNameIs.

Is'nt the above very strange?

===========================================================================
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".

Reply via email to