• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Lost session in 10g oracle application server (oc4j)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have install oc4j on windows xp. Everything is working fine but I am not getting session value in jsp.I have deploy my applicaion in defaultwebinf directory.My sample code is as follow:

push.jsp

<%@ page language = "java" import ="java.util.*,java.util.Date,java.sql.*,java.text.*;"%>



<html>
<head>
<title> Welcome To SFA </title>
</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" >

<form >

<%



String LsUsername = "Girish";
session.setMaxInactiveInterval(2147483600);

session.setAttribute("UserName",LsUsername);

%>
<a href="hi.jsp">push</a>
</form>
</body>


hi.jsp


<%@ page session="true" %>
<%@ page language = "java" import="java.util.*,java.util.Date,java.sql.*,java.text.*;"%>


<html>
<head>
<title> Welcome To SFA </title>
</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" >

<form >

<%

String sName = (String)session.getAttribute("UserName");
String sId = session.getId();

out.println("sName :" +sName);

%>



</form>
</body>

Is there any configuration I have to do in web.xml file for getting session value
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic