sendRedirect from a servlet execuing in the Portal Web App

I'm using the Sun ONE Portal Server 6.0 on a project and the business requirements are such that I need to invoke a servlet running in the Portal Web App from a pop up window. Next, the servlet needs to be able to execute a sendRedirect to another server.

Everything works fine with http:// based URLs that I redirect. But, when the servlet tries to redirect to a file:// based object, the Portal seems to be prepending the desktop URL before my URL. Note that this doesn't happen in Resin. I tried using the response.reset and response.resetBuffer methods before the response.sendRedirect and that didn't help. Has anyone seen this before and is there a workaround?

Thanks.

[703 byte] By [marvekl] at [2007-11-25 8:32:39]
# 1

I have used servlets in the portal web app for pop ups and they work fine. I think the problem is more with the web server than with the portal server. I have never heard of sending a redirect to a file before, is the file on the server machine or the client machine? Is it part of the J2EE spec or are you relying on a side effect of resin web container?

aaron_anderson at 2007-7-1 15:03:57 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

I'm pretty sure this isn't a Resin side effect since file:// redirects work in Tomcat as well and redirects using http:// work perfectly in the Portal. If you think about it, that makes sense. It's just a URL after all.

I need the ability to dynamically construct and invoke file URL's in those cases where I need the Portal to return files that are not fronted by an HTTP server but instead live on the file system. The browser allows you to do this, if you go and type in file://server/path/filename, you'll notice that the browser will load that fie if it can handle the mime type.

This is exactly the effect I need. Except that it doesn't see to work.

marvekl at 2007-7-1 15:03:57 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3
I guess the web server thinks that you want to redirect to a file on the web server, not on the client. Besides working this out with the web server support, couldn't you work around this with javascript?
aaron_anderson at 2007-7-1 15:03:57 > top of Java-index,Web & Directory Servers,Portal Servers...