----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Problem solved by moving the scratchdir from the zones servlet directory to
another directory...

I would still be interested why this happens!!

sk


>
> JServ 1.0    (please don't tell me to use 1.1 if it is not known to
> solve the problem)
> GNUJSP 1.0.1pre1
> Windows NT
>
> I've posted this to the gnujsp list without resoliving the issue, but I
> think this is a configuration problem so I will try this here.....
>
> I have a weird problem with static variables of a class
>
> I have a jsp page and a servlet. Both the servlet and the jsp are in the
> same zone
>
> The servlet class has a public static variable. Although this variable
> is not null, when trying to access it from any jsp, I get a null value.
> When I change the calue from a jsp, the servlet doesn't get the change.
>
> The same happens if instead of a servlet having the static variable, I
> use just a simple class with a static variable (servlets and jsps
> accessing it het different values)
>
> The only think I could imagine is that there are 2 classloaders, one for
> the servlets and another for the JSP generated servlets, but why should
> this happen (same zone)??
>
> as for the configuration
> in the zones property file there are 3 repositories with 1)gnujsp10.jar
> 2)servlet-2.0-plus.jar and 3)the directory where the servlets are
>
> in jserv.properties there are also 3 classpaths with 1)ApacheJServ.jar
> 2)jsdk.jar and 3)tools.jar (from the jdk)
>
> putting the jsp.jars to the classpath instead of the repository has no
> effect.
>
> I have more problems but I think the above would solve all of them (I
> cannot share sessions between jsps and servlets)
>
> Any help is GREATLY appreciated
>

--
======================================================================
Stefanos Karasavvidis
Electronics & Computer Engineer
e-mail : [EMAIL PROTECTED]

Multimedia Systems Center S.A.
Kissamou 178
73100 Chania - Crete - Hellas
http://www.multimedia-sa.gr

Tel : +30 821 88447
Fax : +30 821 88427




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to