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:[EMAIL PROTECTED]] > Sent: Tuesday, February 26, 2002 6:35 AM > To: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>