RE: Always the same URL

2001-01-15 Thread Lou . Farho

This is the same problem I am having.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 12:32 AM
To: [EMAIL PROTECTED]
Subject: AW: Always the same URL


Dear Craig, 

thanks a lot for your fast and spontaneous response. 

I have tried it again with the URL
http://cgn01ws0012/NASApp/strutsone/editSubscription.do but the result was
the same: 
I receive the complete URI of the ActionServlet
'NASApp/strutsone/ActionServlet' where 'strutsone' is the contextRoot and
'NASApp' the indicator to the IPlanet WebServer to route this request to the
IAS. 

I have tried to find anything about that problem in the IPlanet's
documentation but I haven't found anything yet except that IPlanet says it
follows the rules of Servlet 2.2.  

I've also tried to find something solving that problem via deployment but no
chance.

Now I am a little bit disappointed due to I really started to like STRUTS...


Thanks a lot. 

Oliver Lauer 
AXA Insurance Germany 

Coloniaallee 10-20 
50502 Cologne 
Germany 

-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet am: Freitag, 12. Januar 2001 19:11
An: [EMAIL PROTECTED]
Betreff: Re: Always the same URL

[EMAIL PROTECTED] wrote:

> Hello,
>
> I always get the same path-info in 'path = request.getServletPath()', the
> path of the ActionServlet, although I have invoked
> the following 'http://cgn01ws0012/NASApp/strutsone/logon.do' to get onto
the
> logon-page in the struts-example.
>
> Doing so I get difficulties in resolving the correct mapping in
> 'ActionMapping mapping = processMapping(path);'
>

If the context path of your application is "/NASApp/strutsone", then
getServletPath() is supposed to return "/logon.do" in your example URL
above,
and getPathInfo() is supposed to return null.  If iPlanet is not doing this,
it
isn't following the rules of the 2.2 servlet spec.  Could you please do a
little
more testing of what getPathInfo() and getServletPath() return for this URL,
and
for a different one like:

http://cgn01ws0012/NASApp/strutsone/editSubscription.do

Craig



Re: Always the same URL

2001-01-12 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

> Hello,
>
> I always get the same path-info in 'path = request.getServletPath()', the
> path of the ActionServlet, although I have invoked
> the following 'http://cgn01ws0012/NASApp/strutsone/logon.do' to get onto the
> logon-page in the struts-example.
>
> Doing so I get difficulties in resolving the correct mapping in
> 'ActionMapping mapping = processMapping(path);'
>

If the context path of your application is "/NASApp/strutsone", then
getServletPath() is supposed to return "/logon.do" in your example URL above,
and getPathInfo() is supposed to return null.  If iPlanet is not doing this, it
isn't following the rules of the 2.2 servlet spec.  Could you please do a little
more testing of what getPathInfo() and getServletPath() return for this URL, and
for a different one like:

http://cgn01ws0012/NASApp/strutsone/editSubscription.do

Craig