David,
I am not sure if I understand your problem so feel free to correct my impression. I have three
jsp's: hello1, hello2, and hello3.
hello1.jsp
<%@ page session="true" %>
<%
Integer num = new Integer(100);
String id=(String)session.getId();
session.putValue("num",num);
String url =response.encodeURL("hello2.jsp");
out.println("Num value in session is: " + num.intValue());%><BR><br><%
out.println("Session id is:" + id);%><br><%
out.println();%><br>
<a href='<%=url%>'>hello2.jsp</a>
hello2.jsp
<%@ page session="true" %>
<%
Integer i= (Integer )session.getValue("num");
Integer anothernum=new Integer(102);
session.putValue("num",anothernum);
String id=(String)session.getId();
String url =response.encodeURL("hello3.jsp");
out.println("Num value in session is "+i.intValue());%><BR><BR><%
out.println(id); %><br><br>
<a href='<%=url%>'>hello3.jsp</a>
hello3.jsp
<%@ page session="true" %>
<%
String sameid=(String)session.getId();
Integer k= (Integer)session.getValue("num");
out.println("New num value in session is " + k.intValue());%><br><br>
<%out.println("Session ID is: " + sameid);
%><br><br>
I used the session object and created a "num" property in hello1 which I gave a value of 100. Then linked to hello2. In hello2, I created a num Integer object to carry the session "num" property and allow the data to persist into hello2. Then in hello3, I did the same essentially except I changed the session "num" value to 102. All my session ids are the same.
New objects in each application to carry the session propertys which are themselves objects.
Am I missing the point as to what you are looking for?
hob