To do this, I created a service that, given a file, caches the file and generates a random string (actually, a base-64-encoded 128 bit random number).
The caller then uses this string as a parameter on the download url. The raw screen grabs the string from the parameter, and fetches the file from the service using the string. I use the TTL on the cache to make sure that the string is only good for a limited amount of time. If the string isn't found in the cache, then I return an "access denied" error. -- Michael On 8/11/04 12:36 PM, "Paolo Victor Gonçalves Soares / Projeto Ourgrid - Projeto OurGrid" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm developing a jetspeed portlet, which runs an application on the > server with some parameters given by the user as input and produces an > output file that should be available for downloading. > > The application runs, the file is created but I'm having a problem with > the download implementation: the file should be available to, and only > to, the user who had ran the portlet. This means that I can't just copy > the file to a folder in the portal, because any user would have access > to it. > > I've tried putting the output file in a "hidden" directory (such as the > user's psml dir) and download it through the HttpServletResponse, but I > keep getting "getWriter() has already been called for this response" > exceptions. > > So, do you guys have any idea of how to implement this? > > Thanks for your attention, > ~Paolo Victor > > > --------------------------------------------------------------------- > 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]