I found that I had to put the following line into
the GLOBAL Init Params section (in the zone.props file) to get it to work
properly:
(The documentation doesn't say to put it into this section)
# Global Init Parameters
#########################
servlets.default.initArgs=scratchdir=c:\your_scratch_dir_here
Though I am using WinNT as my platform, a friend found that he had
to do the same alteration on his Linux system to get things working.
Hope that helps,
Steve L.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bruce Conrad
Sent: Monday, August 16, 1999 5:25 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP with Apache and JServ
Thanks for that explanation, Craig. There are two lines in the zone's
properties file that seem to be involved with setting up the scratch
directory:
servlet.jsp.initArgs=scratchDir=/usr/local/apache/servlet
jsp.initparams=scratchdir=/usr/local/apache/servlet
Are they both necessary? Are either or both correct?
BTW, in the Apache error_log, this message appears every time I start
the server:
The JSP Engine is not configured with a scratch dir.
Please add
jsp.initparams=scratchdir=<dir name>
in the servlets.properties file for this context
This does not inspire confidence...
Thanks again,
Bruce Conrad
-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 14, 1999 4:34 PM
To: Bruce Conrad
Cc: [EMAIL PROTECTED]
Subject: Re: JSP with Apache and JServ
Bruce Conrad wrote:
>
> One thing I don't understand about JSP is this: the .jsp page is
> compiled into a servlet. Where is that servlet placed? Does the
servlet
> zone's properties file not need a repositories entry saying where the
> compiled servlets are placed?
>
For the JSWDK implementation, the generated servlets are stored in the
scratch
directory that you've defined in the initialization parameters of your
JSP
servlet. Because of this, you don't have to do anything with your zone
properties or anything like that.
Normally, only the compiled ".class" file is kept, but you can set an
initialization parameter to keep the generated source as well.
Craig McClanahan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html