Re: Shopping Cart Apps/Sessions Across Multiple Servers

2000-11-14 Thread Sreekumar Pillai
We ran across the same issue in a previous project and this is how we solved it. 1. Create a unique sessionID. String theSessionKey = theSession.getId() + theSession.getCreationTime(); long value = ( long ) ( Math.random() * 100.0 ); theSessionKey += String.valueOf( value ); 2. Insert the

Re: problems using session

2000-07-14 Thread Sreekumar Pillai
you must be using Servlet 2.1 container. session.setAttribute() and getAttribute() is part of Servlet 2.2 API. Sree Pillai From: Rupali Bains Goswami [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: IPlanet problem

2000-05-15 Thread Sreekumar Pillai
Most likely, you are facing the problem on request.forward() call. Try response.sendRedirect() instead. I think it is a bug. Sree From: Marco M [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

Model 2 Path Issues

2000-03-20 Thread Sreekumar Pillai
I am using Model 2 architecture for a project. This is the scenario. 1. All my jsp files are in root/cmerch/jsp. 2. All my servlets are in root/cmerch/servlets. 3. in the webserver (IPlanet), /cm is mapped to /cmerch/servlets. The problem :- I use /cm/testServlet1 to invoke testServlet1 from a

Re: Model 2 Path Issues

2000-03-20 Thread Sreekumar Pillai
the best way to complicate life! -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sreekumar Pillai Sent: Monday, March 20, 2000 5:55 PM To: [EMAIL PROTECTED] Subject: Model 2 Path Issues I am using Model 2

Secure - non secure data transfers

2000-03-08 Thread Sreekumar Pillai
I am developing a merchandise site that need to collect some data from a secure server ( credit card info, account info etc.). I was going through the archives and found some useful material from gurus for transferring data between secure and non-secure servers. After going through the materials,

Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-15 Thread Sreekumar Pillai
You have to use JSP0.92 syntax. In the pages, use % errorpage="errorpage.jsp" % You don't have to do anything in the errorpage itself. Sree From: BIJUNAIRS [EMAIL PROTECTED] To: "'Sreekumar Pillai'" [EMAIL PROTECTED] Subject: RE: Errorpage directive and IPlanet 4.0 S

Errorpage directive and IPlanet 4.0 SP3

2000-02-10 Thread Sreekumar Pillai
How do you specify the errorpage directive in IPlanet(SP2)? (JSP 0.92). The following code snippet doesn't work. I checked the generated servlet from this JSP before and after adding the errorpage directive. I can't see any difference in the generated code. Is it a bug with IPlanet? Or Am I

Re: Errorpage directive and IPlanet 4.0 SP3

2000-02-10 Thread Sreekumar Pillai
() % /body /html This itself throws a nullpointer exception! If I remove exception.getMessage(), this works fine. body An exception has occured. The details: /body /html Sree From: Naeem Ahmed [EMAIL PROTECTED] To: Sreekumar Pillai [EMAIL PROTECTED] CC: [EMAIL PROTECTED

Re: Model 2 Architecture and jsp:setProperty tag question

2000-02-04 Thread Sreekumar Pillai
nfoBean) session.getValue("theUserInfoBean"); if (uib == null) session.putValue("theUserInfoBean", uib); uib.setUserName(request.getParameter("userName"); uib.setUserpassword(request.getParameter("userpassword"); Craig Sreekumar Pillai wro

Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Sreekumar Pillai
1. How do you use jsp:setProperty tag along with form action=Model2Servlet? class userInfoBean { String userName; String userpassword; // Get and set methods for userName and password. // .. } I have a jsp page which accepts a userName and password. jsp:useBean

Global shared data objects

2000-01-26 Thread Sreekumar Pillai
In the following example, class ConnectionManager { .. private ConnectionManager(){ } static private ConnectionManager a_instance = null; synchronized static public ConnectionManager instance() { if (a_instance == null) a_instance = new ConnectionManager(); return a_instance;

JSP and IPlanet

1999-12-21 Thread Sreekumar Pillai
This can't be possible! I am using JSP on IPlanet and I notice my session expires after the specified timeout irrespective of the last accessed time. For some reason, the webserver just checks the creation time only. I reduced the timeout period to 2 minutes and continuously hit the server to

Session expiry issues

1999-12-07 Thread Sreekumar Pillai
My problem is that I am losing the session object in between my JSP pages, though in most cases it seems to work. I added the code to redirect to the login page at the beginning of every jsp file, if request.getSession(false) returns null. But occasionally, I lose the session object in some page