tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Campbell <chris.campb...@lincmedia.co.jp>
Subject RE: value of an parameter: too long ?
Date Mon, 25 Feb 2002 12:12:36 GMT

Tomcat 4 is more strict about strings passed as URL parameters. If there are
any URL string type characters (ie. &, ?, =) in the parameter you pass then
tomcat may not interpret it as you expect. Try using URLEncoder.encode() on
your tableName parameter, because it has an '=' in it. Or you could just
replace these characters with their URL encoding equivalent:
? -> %3F
& -> %26
= -> %3D

ChrisC

> -----Original Message-----
> From: Alex [mailto:alexalecu@go.ro]
> Sent: Tuesday, February 26, 2002 6:35 AM
> To: tomcat-user@jakarta.apache.org
> Subject: value of an parameter: too long ?
> 
> 
> I have a problem using tomcat 4.0.1.
> 
> From a html page, using javascript, i open a new window, its location
> is:
> reportgenerator.jsp?templateName=aree_aziendali&tableName=SUBAREA LEFT
> OUTER JOIN REFERENTE ON (REFERENTE.CODICE_AREA = SUBAREA.COD_AREA) AND
> (REFERENTE.CODICE_SOTTOAREA = 
> SUBAREA.CODICE)&fields=SUBAREA.COD_AREA,SUBAREA.CODICE,SUBAREA
.DESCRIZIONE,REFERENTE.COGNOME,REFERENTE.NOME&where=&orderby=SUBAREA.COD_ARE
A,SUBAREA.CODICE&bod> yRows=17
> 
> 
> 
> but, from jsp, when i take a look at the parameter names received and
> their values, i see:
> 
> fields=SUBAREA.COD_AREA,SUBAREA.CODICE,SUBAREA.DESCRIZIONE,REF
> ERENTE.COGNOME,REFERENTE.NOME
>  SUBAREA.COD_AREA) AND (REFERENTE.CODICE_SOTTOAREA = SUBAREA.CODICE)
> templateName=aree_aziendali
> where=
> bodyRows=17
> orderby=SUBAREA.COD_AREA,SUBAREA.CODICE
> 
> That means that the the parameter tableName and its value are
> truncated, i don't know why, maybe because the value for tableName is
> too long.
> 
> Using tomcat 3.3, everything works fine.
> Can someone tell me how should i fix this problem (should i edit the
> config files for tomcat 4.0.1) ?
> 
> Thanks in advance...
> 
> Alex.
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message