I've installed Oracle Application Server 4.0 Enterprise Edition.
I'm developing a web application (called R01), composed of jsp and html
pages and servlet.
My problem is that i cannot share same session between servlet and jsp
context !
In the servlet (present in jservlets folder) i create session like in the
examples (taken from OAS documentation):

 oracle.OAS.servlet.ServletRequest req1=null;
 HttpSession mySession=null;

   public void doPost(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException
 {

  req1=(oracle.OAS.servlet.ServletRequest)req;
  mySession=req1.getSession(true);

  String proof="Hello";
  mySession.putValue("proof",proof);}
}

in the jsp page i would refer to same session context; my code will be:

<%
String myString;
myString=(String)session.getValue("proof");
%>

but myString value is null !!
I've tried also to print out session id in the two different context (jsp
and servlet). They are different !!

The structure of my OAS configuration is formed so:
- an application, called 'R01 jservlet' that contains a jservlet cartdridge
with virtual path set to /jservlets;
- an application, called 'R01 jsp' that contains a jsp cartdridge with
virtual path set to /jsp;

In others web server servlet/jsp enabled i've used before Oracle, this type
of problem is relative to the definition of a right context (in this case a
context relative to the entire web application R01).
The URI to the application will be modified like this:
r01/jservlets/SERVLET_NAME or like this: r01/jsp/JSP_PAGE.
In this case ? My problem is relative to things like these ?

Please help me !!
Thanks in advance.

email: [EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to