Sorry, but I don't think that you've understand my question. I wan to get the full URL of the request in my action class. None of the examples in the wiki page you posted addresses this issue.
On 9/23/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > > Same questions same answers... > > http://wiki.apache.org/struts/StrutsFileDownload > > Kind regards > mc > > > On 23 Sep 2005 at 11:41, emre akbas wrote: > > > Hi, > > I want to do sth like the following: > > When a user clicks the link: > > http://myhost:8080/myapp/server.do/chapter1/images/1.jpg I want to get > the > > "/chapter1/images/1.jpg" part of the request and then serve the > requested > > file. "server.do" is a downloadaction. > > As Laurie Harper stated in one of his previous emails, prefix mapping, > i.e. > > *.do, is not suitable to do this. He suggested to me that I use suffix > > mapping which is sth. like /do/* . I have tried suffix mapping but no > > success. request.getPathInfo() returns null. > > All I want to do is to get the request.getPathInfo(), or the full URL of > the > > request, within a downloadaction class. > > Thanks in advance. > > > > > > FOCUS Computing > Mob: 0415 24 26 24 > [EMAIL PROTECTED] > http://www.focus-computing.com.au > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/09/2005 > >