tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Isaacs" <Larry.Isa...@sas.com>
Subject RE: Does not Work on Linux but works on windows
Date Thu, 29 Apr 2004 13:00:17 GMT
Changes meant for Tomcat 5 had the side effect of causing
Tomcat 4.1.29 to have problems with character encoding.
You will need to use 4.1.30 to get character encoding behavior
equivalent to 4.1.27.

Note that if you use the admin webapp, review
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27648>
for how to address a problem with the admin webapp in the full
(non-LE) version.  The LE version is available at:
<http://apache.130th.net/jakarta/tomcat-4/v4.1.30/bin/>

Should you some day upgrade to Tomcat 5, note that its
behavior differs from Tomcat 4.1.x with respect to whether
request.setCharacterEncoding() affects query string parameters
in the request URL.  For details, see the URIEncoding and
useBodyEncodingForURI attributes here:

<http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html>

Tomcat 4.1.30 supports these attributes as well, but the default
values differ from Tomcat 5.0.x so that 4.1.30 will be consistent
with 4.1.27 and earlier versions

Cheers,
Larry

> -----Original Message-----
> From: Kiran Kumar [mailto:kiran@sraindia.com] 
> Sent: Thursday, January 29, 2004 7:21 AM
> To: Tomcat Users List
> Subject: Re: Does not Work on Linux but works on windows
> 
> 
> we were using tomcat 4.1.27 on windows whereas the version on 
> linux was
> 4.1.29 .if we change the version in linux to 4.1.27 it works 
> ...why is this
> happening , can anyone help me out on this
> 
> Thanks,
> Kiran
> ----- Original Message -----
> From: "Billy Kantartzis" <billy@vknet.net>
> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> Sent: Thursday, April 29, 2004 4:16 PM
> Subject: Re: Does not Work on Linux but works on windows
> 
> 
> > probably the fonts are not supported check this out
> > --- Kiran Kumar <kiran@sraindia.com> wrote:
> > > Hi All,
> > >   We I have Installed Tomcat 4.1.27 on both windows
> > > and linux , development
> > > is on windows
> > >   and later we copy the class files to Linux
> > >
> > >   Packages used .
> > >   Tomcat 4.1.27
> > >   Struts 1.1
> > >
> > >
> > >   Problem
> > >      We have a SetCharacterEncoding filter Set to
> > > EUC_JP , but this is not
> > >      working when we use HTTP GET method , so we
> > > used the following line in
> > > JSP.
> > >      This works fine (the correct EUC_JP string is
> > > displayed in next page)
> > > in
> > >      Windows but not on Linux
> > >
> > >      1. Are we Missing Something on Linux
> > > Installation of Tomcat ?
> > >
> > >
> > > <code>
> > >
> > >    (we have name value pairs in a HashMap value is
> > > in EUC_JP string)
> > >
> > >   In JSP
> > > <bean:define id="taskListMap" name="myBean"
> > >              property="myMap"/>
> > >
> > >  <% java.util.HashMap hashMap =  (HashMap)
> > > taskListMap;
> > >   String queryString =
> > > Common.encodeHashMapString(hashMap);%>
> > >   <A
> > > HREF='<%=request.getContextPath()%><html:rewrite
> > > href="/taskUpdate.do"/>?<%= queryString%>'>
> > >   <bean:write name="taskList" property="taskName"/>
> > > </a>
> > >
> > >
> > >
> > >
> > >     public static String encodeHashMapString(HashMap
> > > hashMap)
> > >                                 throws
> > > UnsupportedEncodingException {
> > >
> > >             String link = new String();
> > >
> > >             HashMap orderKeyMap = hashMap;
> > >             HashMap newMap = new
> > > HashMap(hashMap.size());
> > >              //  Instance of Set interface
> > >              Set s = orderKeyMap.entrySet();
> > >              // Instance of Iterator interface
> > >              Iterator i = s.iterator();
> > >
> > >              String value = "";
> > >              String key = "";
> > >              // Iterates the elements
> > >              int count = 0;
> > >              while (i.hasNext()) {
> > >                  // Instance of Map.Entry  interface
> > >                  Map.Entry e = (Map.Entry) i.next();
> > >
> > >                 try {
> > >                      key = (String) e.getKey();
> > >                      key = makeNullEmpty(key);
> > >                      value = (String) e.getValue();
> > >                      value = makeNullEmpty(value);
> > >                      value =
> > > URLEncoder.encode(value, "EUC_JP");
> > >                      newMap.put(key, value);
> > >                      if (count > 0) {
> > >                          link = link + "&" + key +
> > > "=" + value;
> > >                      } else {
> > >                          link = link + key + "=" +
> > > value;
> > >                      }
> > >                      count++;
> > >                 } catch
> > > (UnsupportedEncodingException e1) {
> > >                     // TODO Auto-generated catch
> > > block
> > >                     LOG.error(e1.getMessage());
> > >                     throw e1;
> > >                 }
> > >              }
> > >
> > >             return link;
> > >         }
> > >
> > > </code>
> > >
> > >
> > >
> > >
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

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


Mime
View raw message