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