tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp.Krummenac...@mgb.ch
Subject AW: problems with encodeURL
Date Tue, 25 Jun 2002 08:44:21 GMT
Thanks; 
I will have a look at those points (I'm using 4.0.1 integrated in Sun's
Forte for Java (4.0)); I discovered, that somwhere, the server creates a new
session if cookies are turned off (does not occure when turned on ...). The
server produces the following error:

MonitorFilter::java.net.SocketException: Unexpected end of file from server
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:780)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:682)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:565)
        at
org.netbeans.modules.web.monitor.server.NotifyUtil$Command.run(NotifyUtil.ja
va:391)
        at java.lang.Thread.run(Thread.java:536)

 ... (Could be a Forte-Problem ...)
Philipp



-----Urspr√ľngliche Nachricht-----
Von: Ralph Einfeldt [mailto:ralph.einfeldt@uptime-isc.de]
Gesendet am: Dienstag, 25. Juni 2002 09:56
An: Tomcat Users List
Betreff: AW: problems with encodeURL

The URL looks OK. I have no problems reading the parameters from 
such an URL (tomcat 4.0.3).

(Assuming that "HttpServletResponse's getAttribute" was just a 
typo and should be "HttpServletRequest's getAttribute")

- Which tomcat version do you use ?
- Do you use a connector ? (Which one)
- Have you tried to print out HttpServletRequest.getQueryString()
- Have you verified that the request looks as expected in the 
  the accesslog.

> -----Urspr√ľngliche Nachricht-----
> Von: Philipp.Krummenacher@mgb.ch [mailto:Philipp.Krummenacher@mgb.ch]
> Gesendet: Dienstag, 25. Juni 2002 09:42
> An: tomcat-user@jakarta.apache.org
> Betreff: problems with encodeURL
> 
> http://localhost:8081/jsp/login.jsp;jsessionid=5483F1B0E56180A
7774110F1B4B59
042?newLanguage=fr

but from such an URL, ths HttpServletResponse's getAttribute-method
cannot
read out my newLanguage-Parameter ... 
(Although I add the parameter before encoding the URL ...). 

Does anybody have experience with URL-rewriting with Tomcat and could
show
me a short example? 
(Or should I try to add the sessionId myself to the URL?)


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

--
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