tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Kumar" <ki...@sraindia.com>
Subject Re: Does not Work on Linux but works on windows
Date Thu, 29 Jan 2004 12:21:08 GMT
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


Mime
View raw message