[opencms-dev] Session setAttribute() Problem

luca.bonzagni luca.bonzagni at freefile.it
Thu Nov 4 14:48:08 CET 2004


Hi,
I'm tring to send information from one page (PAGE 1) that is out of opencms into one (PAGE 
2) that is inside the content managment.

To do that I'm using the session.setAttribute() method but the PAGE 2 inside opencms receive 
value = null.
Any idea?

Here the code of the two pages:

PAGE 1:  out of OPENCMS
__________________________________________________________________________________
<%@ page 	language="java" import ="java.util.Enumeration"  session="true"%>

<% 	
	String url = "url";
	session.setAttribute( "url", url);
%>

<HTML>
<BODY>
<A HREF="http://xxx.xxx.com/opencms/opencms/xxx/it/test">CLICK LINK</A>
</BODY>
</HTML>
__________________________________________________________________________________



PAGE 2:  inside OPENCMS
___________________________________________________________________________________
<%@ page language="java" import ="java.util.Enumeration" session="true"%>


<HTML>
<BODY>
Hello, <%= session.getAttribute( "url" ) %>
</BODY>
</HTML>
___________________________________________________________________________________

the result of Page 2 is :
Hello null

Why?

Why this pages are working outside opencms,
but doesn't work if Page1 is inside the server and PAGE 2 inside opencms inside the same 
server?



Thanks 
Luca.
________________________
Ing. Luca Bonzagni
e-mail: luca.bonzagni at freefile.it
FreeFile S.r.l.
Via Margotti, 10
Casalecchio di Reno(BO)
Cel. (+39)349.21.45.046
www.freefile.it




More information about the opencms-dev mailing list