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
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]
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:
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
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
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,
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
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
() %
/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
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
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
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;
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
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
14 matches
Mail list logo