From: <php...@li...> - 2006-01-13 18:22:49
|
Hi, in version 3.x the java_session() only works when it is the first java statement within your script. This is a technical problem, when the tomcat response is written, it is no longer possible to call request.getSession(). Version 2.0.8 contained code which allocated a new servlet instance in this case. I have created a problem report for this, please see PR1405042 for details (http://sourceforge.net/tracker/index.php?func=detail&aid=1405042&group_id=117793&atid=679233) This problem will be fixed in version 3.0.6. However it is better to aquire a session handle as early as possible. For example the following code is problematic: echo "test"; $session = java_session(); => "Error response header already sent" $s = new java("java.lang.String", ...); $session = java_session(); => null; "Tomcat response headers already sent" Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |