[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

RE: About defining zones in JServ




It does but that means that in one application I have to use files with ".jsp"
and the other one with ".jsps" which is probably not desirable. My question is
still:

How do I set up the zones so that all jsp files in the url starting with
/app1/..... are mapped to one zone and /app2/..... are mapped to another zone?






"Noel J. Bergman" <noel@ibm.net> on 1999-10-04 17:08:56

To:   Calin Tenitchi/netset/se@netset
cc:

Subject:  RE: About defining zones in JServ



The JSP specification clearly specifies the meaning of application scope.
You need a separate security zone in order to get a separate classloader,
with the consequent separate application scope.

Zones are mapped into JServ using ApJServMount.  This is different from
ApJServAction, which maps file extensions to servlets (and, by inference, to
zones).  This difference is the crux of your problem.  It is easy to say:

ApJServMount /servlet /zone1
ApJServMount /servlets /zone2

but what do you do about .JSP?  You might try

ApJServAction .jsp /servlet/gnujsp
ApJServAction .jsps /servlets/gnujsp

That *should* provide two independent copies of JSP, completely separate
from one another, one handling .jsp and the other handling .jsps.

I say "should" because I haven't tested it.

     --- Noel