I made an ugly fix, but working, in the meantime. I Overwrite the 
Location header:

response.sendRedirect("file"); //file could be almost anything
response.setHeader("Location", "https://server/path/file";); //the real url

Thanks for the replies!

/Melker

Craig R. McClanahan wrote:
> 
> On Mon, 20 Aug 2001, Martin van den Bemt wrote:
> 
> 
>>I think you have to install the https protocol handler from the jsse
>>pacakage. Documentation is provided with jsse to get it working (I had
>>troubles with the non programming solution, the java.policy file, so if you
>>bump in to that, register it in your servlet....
>>
>>
> 
> The need to do this has (correctly) been posted as a bug in Tomcat 4.  The
> problem is that the implementation of sendRedirect is creating a new
> java.net.URL in order to convert relative URLs to absolute (as required by
> the servlet spec), and this won't work unless there are URLStreamHandlers
> in place for the "https" scheme.
> 
> Right now, Martin's workaround will fix the problem.  But we're going to
> change Tomcat 4 before final release so that you don't have to do it.
> 
> 
>>Mvgr,
>>Martin
>>
>>
> 
> Craig McClanahan
> 
> 
> 


-- 
-----------------------------------
Erik Melkersson
[EMAIL PROTECTED]
http://www.edu.isy.liu.se/~erime844

Reply via email to