On 07/16/2003 08:37:00 PM Jos� Ventura wrote: > I'm back with my usual bizarre and weird grotesqueries under Websphere > 4.0. I've even marked this one off-topic to annoy less people! > > When I use a forward from within an Action, via the following snippet, > it works: > > fwd = "/editQuestionnaire.do?qId=" + qId; > return new ActionForward( fwd ); > > If I use a redirecting forward instead, my app bites the dust: > > fwd = "/editQuestionnaire.do?qId=" + qId; > return new ActionForward( fwd, true ); // redirect == true > > In the first case, Struts finds my action mapping (/editQuestionnaire) > and everything works fine. In the redirecting forward, Struts complains > it can't find a mapping for "/inquirer/editQuestionnaire". This is > evident -- there is a mapping for "/editQuestionnaire", with no trailing > "/inquirer", wich is the context-root for my app. > > Somehow, Struts is receiving the full URL for the redirect, instead > of only the "/edit" part. > > As you may have guessed, it works fine on Tomcat. > > I will ask if anyone has seen this before, but since I suspect I'm > making a huge yet subtle mistake somewhere (Websphere can't be THAT > idiot, now can it?), I won't expect much.
LOL! Nope, its not you. This behavior has been witness by a few people on this list including myself. My app has to support WAS 4.0.3. You can search the archives for Websphere and you should dig up some posts related to this. Since you are running 4.0.4 you should already have the fix pack that supposedly corrected this, but you also need to set a system property to make WAS redirect properly. I think the system property is com.ibm.webshpere.sendredirect.compliance=true Hope this helps, Susan Bradeen > > []'s > - ventura --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

