tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leos Literak <liter...@seznam.cz>
Subject Re: redirect bug?
Date Fri, 06 Sep 2002 06:15:50 GMT
Andrew Conrad wrote:
> Can you make this feature work from other JSP/Servlet containers or
> other languages (ASP, PHP)?

I haven't tried, but mail-archive.com utilizes this feature:

http://www.mail-archive.com/velocity-user@jakarta.apache.org/msg07998.html

> It just seems like this would be an issue of the browser.  Have you
> tried other browsers to see if they react differently?

no, this is not browser specific issue. I used command line
telnet utility too:

[literakl@localhost literakl]$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /Profile?userId=1&action=sendEmail HTTP1.0

HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Connection: close
Date: Thu, 05 Sep 2002 12:57:04 GMT
Location: mailto:
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)


It seems to me, that tomcat for some reason
discards

response.redirect("mailto:literakl@server.cz")
to
response.redirect("mailto:")

Why?

	Leos

>>-----Original Message-----
>>From: news [mailto:news@main.gmane.org] On Behalf Of Leos Literak
>>Sent: Thursday, September 05, 2002 9:21 AM
>>To: tomcat-user@jakarta.apache.org
>>Subject: redirect bug?
>>
>>
>>Hi,
>>
>>I try to increase protection of my users
>>with such servlet:
>>
>>  String url = "mailto:"+user.getEmail();
>>  response.sendRedirect(url);
>>
>>e.g. on normal site there is no email, just
>>link to servlet which redirects to email.
>>
>>Well, it partially works. It really
>>opens email client. Unfortunatelly
>>TO field is not filled.
>>
>>After some debugging I realized, that
>>tomcat somewhere cuts off email address
>>from url. String url is OK, but final
>>URL is not:
>>
>>HTTP/1.1 302 Moved Temporarily
>>Content-Type: text/html
>>Connection: close
>>Date: Thu, 05 Sep 2002 12:58:38 GMT
>>Location: mailto:
>>Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
>>
>>
>>Any idea, why it doesn't work? Or other
>>solution for this task?


-- 
Leos Literak
http://AbcLinuxu.cz - tady je tucnakum hej!




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message