This would appear to be a bug with jswdk-1.0.1. If it was written correctly
to the spec, getServletPath() would return
/examples/servlet/Turbine
getRequestURI() may give you more info than you need. I think if you
continue to run Turbine like this the screen/ScreenValue pair and any other
pathInfo used to generate the current screen will be added to DynamicURI
before the correct value given in the constructor. Your links will not
work.
John McNally
----- Original Message -----
From: Michael J. Wirthlin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 17, 2000 7:03 AM
Subject: Running turbine on Win98 using jswdk-1.0.1
>
> I am relatively new to Servlet programming and am trying to get turbine
> to run on Win98 using jswdk-1.0.1. I have been somewhat successful with
> one small problem. I have the following problem when running turbine in
> this environment:
>
> I map the Turbine servlet to the "/examples" directory and access the
> servlet with the following path:
>
> http://localhost:8080/examples/servlet/Turbine
>
> The servlet operates correctly until the servlet recognizes the need to
> validate the session and create a dynamic uri. The dynamic uri created
> for the login screen is:
>
> http://localhost:8080/servlet/Turbine/screen/Login
>
> Note that the servlet does *not* add the necessary /examples prefix to
> the path. Thus, the servlet crashes because it is called in a location
> where the servlet does not exist.
>
> I fixed the problem on my machine by making the following modification
> on line 155 of RunDataFactory;
>
> was: data.setScriptName (data.getScriptName() +
> data.getRequest().getServletPath() );
> now: data.setScriptName (data.getScriptName() +
> data.getRequest().getRequestURI());
>
> Note that the getRequestURI provides me with the necessary "/examples"
> while the getServletPath() does not. It seems to me that this code is
> written with the assumption that the servlet operates at the root
> directory. Is this only an issue with windows or can the same thing
> occur using Apache Jserve?
>
> Any insight would be appreciated.
>
> - MJW
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]