Hi,
I guess there might be a 'simple' workaround for all IPLANET6.0-User.
Coding the following in the ActionServlet:
protected String processPath(HttpServletRequest request) {
String path = null;
//IPLANET6.0_BEGIN
path = (String)request.getParameter("iplanetpath");
if (path!=null){
System.err.println("Using IPlanet-Bugfix");
return path;
}
//IPLANET6.0_END
and including a hidden field with the value of the action of a form tag like
<input type="hidden" name="iplanetpath" value="/logon"/>
or as a href tag like this:
<li><struts:link
href="editRegistration.do?action=Edit&iplanetpath=/editRegistration"><struts
:message key="mainMenu.registration"/></struts:link>
it seems to work. The STRUTS example works fine...until now :-)) !
Any comments on that workaround ?
Oliver
-----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