I want the .do, but this is not a struts only taglib, it's just that struts is the first thing it's been tested against in which the browser url does not match the request's url. So being struts dependent is pretty undesirable.
I'm going to try the spec way, then the filter, then if that fails, do some reflective bits with your approach :) Thanks, Hen On Thu, 4 Mar 2004, Avinash Gangadharan wrote: > Hen, > From what I could figure you want to get the ".do" uri right ? > If that is the case, I do not think the request parameters that Craig > mentioned from the SRV 8.4.2 would give you that as it is out of the struts > controller scope already by then. > But here's what you could do : > Struts sets a request attribute with the key > "org.apache.struts.action.mapping.instance" > This gived you the AppConfig Object in your request scope and then "path" > property gives you the ".do" URI . > > <request:existsAttribute name="org.apache.struts.action.mapping.instance"> > <bean:write name="org.apache.struts.action.mapping.instance" > property="path"/> > </request:existsAttribute> > > HTH > Avinash > > > -----Original Message----- > From: Henri Yandell [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 04, 2004 10:51 AM > To: Struts Users Mailing List > Subject: Re: Getting the real request url > > > > > On Thu, 4 Mar 2004, Craig R. McClanahan wrote: > > > This technique works fine. In a Servlet 2.4 environment (Tomcat 5 or > > later) environment, however, it is unnecessary ... when the Struts > > controller servlet executes the RequestDispatcher.forward() call, the > > servlet container will create request attributes under the following > > keys, to capture the path elements of the original request (rather > > than the new request): > > > > * javax.servlet.forward.request_uri > > * javax.servlet.forward.context_path > > * javax.servlet.forward.servlet_path > > * javax.servlet.forward.path_info > > * javax.servlet.forward.query_string > > > > For more info, see Section SRV.8.4.2 of the Servlet 2.4 spec. > > Hopefully you won't mind me using you as a walking spec for a clarification. > If it forwards twice to a third jsp file, what do the properties above refer > to? The first uri or the second? > > Thanks, > > Hen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]