-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hi,
First of all, I'll give a quick introduction to what I'm up to.
I'm working on a servlet / XML based interactive web database for Higher
Eductaion students to use in order to track their skills, provide skills
profiles and automatically generate CVs. I am basically reading in XML
pages (which are a bit like ASP's) getting data out of a database, mucking
around with it and putting it on an HTML page and sending it to the
browser.
I may be doing something stupid here, but I am using extra "Path Info" to
make each "web page" have a unique URL to so that the pages are cached but
only accessible to the user that originally requested them - this is done
by combining the current time (in ms) with a unique Session ID - we want
individuals to be able to use the back button on the browser but do NOT
want one person getting another persons page (and hence personal data).
I really can't see any way to do this without using PATH INFO. In case
you're unsure what PATH INFO is, if
http://www.uni.ac.uk/servlets/Hello
is the path to a servlet (that prints "Hello") then
http://www.uni.ac.uk/servlets/Hello/blah/blah/blah
should do exactly the same - except that the "environment variable"
PATH_INFO takes the value of the extra gubbins on the end of the URL, ie,
"/blah/blah/blah". (In the first example, of course, PATH_INFO is null (or
empty).)
Now, our WebMaster here at Liverpool Uni has just installed jserv v1.0 (The
final version) on our Sun / Apache system. [See below for details of the
set up.] It would appear that the Web Server
doesn't understand the concept of PATH INFO, when given the URL:
http://www.uni.ac.uk/servlets/Hello/blah/blah/blah
it tried to "execute"
servlets/Hello/blah/blah/blah.class
decides there isn't such a thing and cops out. Now I can't believe that
this is the intended behaviour, especially since the servlets API has a
number of methods for dealing with the PATH INFO, nor can I believe that the
final release of Jserv could contain such a whopping bug. Can anybody shed
any light on this - all other platforms I've used have been able to cope
with path info just fine?
If anybody can think of a btter list / person to present my problem to them
please let me know.
Adam Marshall
Answers to those question:
#1. What version of Apache JServ you are using
Jserv 1.0b3
#2. What version of Apache you are using
Apache/1.3.3 (Unix) mod_jserv/1.0b mod_ssl/2.0.13 SSLeay/0.9.0b
#3. What OS and OS version you are using
Solaris SunOS 5.5.1
#4. An exact description of what is going wrong (pretend that we are not
there and we cannot see what you are doing). Include any useful log file
output as well.
see above - PATH INFO not understood
#5. Your Apache JServ configuration in Apache
ummm, Webmaster is away on holiday and I don't have access to this!
#6. Log file:
[22/07/1999 14:50:31:596 GMT] Reading request data
[22/07/1999 14:50:31:644 GMT] Will read 34 bytes for this line
[22/07/1999 14:50:31:644 GMT] Read: CLusid HelloWorldServlet/blah/blah
[22/07/1999 14:50:31:644 GMT] Servlet Zone: Lusid Servlet: HelloWorldServlet/bl$
[22/07/1999 14:50:31:644 GMT] Will read 14 bytes for this line
[22/07/1999 14:50:31:644 GMT] Read: Swww.liv.ac.uk
[22/07/1999 14:50:31:645 GMT] Hostname: www.liv.ac.uk
[22/07/1999 14:50:31:645 GMT] Will read 42 bytes for this line
[22/07/1999 14:50:31:645 GMT] Read: EDOCUMENT_ROOT
[22/07/1999 14:50:31:645 GMT] Env: DOCUMENT_ROOT=
[22/07/1999 14:50:31:645 GMT] Will read 26 bytes for this line
[22/07/1999 14:50:31:645 GMT] Read: EGATEWAY_INTERFACE CGI/1.1
[22/07/1999 14:50:31:645 GMT] Env: GATEWAY_INTERFACE=CGI/1.1
[22/07/1999 14:50:31:645 GMT] Will read 185 bytes for this line
[22/07/1999 14:50:31:646 GMT] Read: EPATH
[22/07/1999 14:50:31:646 GMT] Env: PATH=
[22/07/1999 14:55:11:274 GMT] Will read 14 bytes for this line
[22/07/1999 14:55:11:274 GMT] Read: EQUERY_STRING
[22/07/1999 14:55:11:284 GMT] Env: QUERY_STRING=null
[22/07/1999 14:55:11:284 GMT] Will read 28 bytes for this line
[22/07/1999 14:55:11:284 GMT] Read: EREMOTE_ADDR 138.253.100.101
[22/07/1999 14:55:11:284 GMT] Env: REMOTE_ADDR=138.253.100.101
[22/07/1999 14:55:11:284 GMT] Will read 18 bytes for this line
[22/07/1999 14:55:11:285 GMT] Read: EREMOTE_PORT 48752
[22/07/1999 14:55:11:285 GMT] Env: REMOTE_PORT=48752
[22/07/1999 14:55:11:285 GMT] Will read 19 bytes for this line
[22/07/1999 14:55:11:285 GMT] Read: EREQUEST_METHOD GET
[22/07/1999 14:55:11:285 GMT] Env: REQUEST_METHOD=GET
[22/07/1999 14:55:11:285 GMT] Will read 56 bytes for this line
[22/07/1999 14:55:11:285 GMT] Read: EREQUEST_URI
/servlets/Lusid/HelloWorldServlet/blah/blah
[22/07/1999 14:55:11:286 GMT]
Env:REQUEST_URI=/servlets/Lusid/HelloWorldServlet/blah/blah
[22/07/1999 14:55:11:286 GMT] Will read 60 bytes for this line
[22/07/1999 14:55:11:286 GMT] Read: ESCRIPT_FILENAME
/servlets/Lusid/HelloWorldServlet/blah/blah
[22/07/1999 14:55:11:286 GMT] Env:
SCRIPT_FILENAME=/servlets/Lusid/HelloWorldServlet/blah/blah
[22/07/1999 14:55:11:286 GMT] Will read 56 bytes for this line
[22/07/1999 14:55:11:287 GMT] Read: ESCRIPT_NAME
/servlets/Lusid/HelloWorldServlet/blah/blah
[22/07/1999 14:55:11:287 GMT] Env: SCRIPT_NAME=/servlets/Lusid/HelloWorldServle$
--
***********************************************************
*** PLEASE NOTE NEW EMAIL ADDRESS: [EMAIL PROTECTED] ***
***********************************************************
Dr AC Marshall, Centre for Careers and Academic Practice,
c/o Connect: The Internet Centre for Merseyside Businesses.
The Foresight Centre, The University of Liverpool. L69 3GL.
Fax: +44 51 794 8270 Phone: available by request
Cheese of the Fortnight: Munster Gerome
--
--------------------------------------------------------------
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]