Re: Internationalization question
... When I use this JSP, it shows up a text input. I use kinput2/Mozilla to input some Japanese text, hit submit, and then it displays the Japanese text back to me. What I'm wondering is, why does this work? If simply use out.println(request.getParameter(test)) then it displays garbage. For some reason, I must convert the parameter to bytes and then convert it right back to a String with UTF-8 encoding. I'm not really sure what is going on here. Thanks for any comments on this. with request.getParameter(test) you get the iso-8859-1 encoded utf-8 data (which is encoded with us_ascii) - an double encoded string. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 Sending to Database.
It could be, that the form data is double encoded or the jdbc driver automatically encoding the data on the fly. do u use prepared statements (setString())? what is the encoding of your dbms? On Mon, 17 Feb 2003 19:22:55 Andoni wrote: Hello, I am trying to send a Euro symbol ( ) to my database but it keeps being corrupted on the way to the servlet from the form on my page. When I replace the SQL string in my servlet with one which has a Euro symbol hard-coded it works fine and displays in my .jsp fine as the Euro symbol but when I submit a form from my JSP with a Euro symbol it gets corrupted into nonsense on the way to the servlet. Can anyone please help?? Thanks, Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 Sending Euro symbol to Servlet in Form data.
try the following code snippet: String value = String from your form; try { value = new String(value.getBytes(ISO-8859-1), UTF-8) } catch (Exception ex) {} Then write the value (i. e. with a PreparedStatement) to the db. On Mon, 17 Feb 2003 19:56:54 Andoni wrote: Actually the prepared statements couldn't help as I can get the Euro symbol into the database fine by hard-coding it into my statement. It is only getting the information **from the form to the servlet** that is having a problem. Andoni. - Original Message - From: THG [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 17, 2003 7:42 PM Subject: Re: UTF-8 Sending to Database. It could be, that the form data is double encoded or the jdbc driver automatically encoding the data on the fly. do u use prepared statements (setString())? what is the encoding of your dbms? On Mon, 17 Feb 2003 19:22:55 Andoni wrote: Hello, I am trying to send a Euro symbol ( ? ) to my database but it keeps being corrupted on the way to the servlet from the form on my page. When I replace the SQL string in my servlet with one which has a Euro symbol hard-coded it works fine and displays in my .jsp fine as the Euro symbol but when I submit a form from my JSP with a Euro symbol it gets corrupted into nonsense on the way to the servlet. Can anyone please help?? Thanks, Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Taglibs are not interpreted with Tomcat 4.1.18
On Wed, 12 Feb 2003 18:22:26 sorry, i meant /WEB-INF/classes/org/sourcepark/taglibs/kato/db_dropdown.class and not /WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class. It's already there... with Tomcat 3.2.1 there are no problems, but with Tomcat 4.1.18, the taglibs are not interpreted. It seems to me, that the tld's are not parsed or could be found?! Thorsten Sean Dockery wrote: Your actual tag class implementation should be located in... /WEB-INF/classes/org/sourcepark/taglibs/kato/db_dropdown.class ...which is very different from your... /WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class This also means that the first line in your db_dropdown.java source file must be... package org.sourcepark.taglibs.kato; ...and your source file must be recompiled (and copied to /WEB-INF/classes/org/.../db_dropdown.class) Let me know if this helps. - Original Message - From: THG [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 16:50 Subject: Re: Taglibs are not interpreted with Tomcat 4.1.18 On Wed, 12 Feb 2003 13:13:09 Sean Dockery wrote: Uh, no. tagclass is not defined anywhere in your original message. You omitted it. tag tagclasswhat did you put in here?/tagclass /tag ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamekato/shortname uri/WEB-INF/katolib.tld/uri tag namedb_dropdown/name tagclassorg.sourcepark.taglibs.kato.db_dropdown/tagclass bodycontenttagdependent/bodycontent ... /tag /taglib the tagclass (for example) exists under /WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pager taglib not working after migrating to tomcat 4.1.12 from tomcat 4.0.4
i have a similar problem with a custom taglib. it works under tomcat 3.x but not under tomcat 4.x. what changed between jsp 1.1 and jsp 1.2? thanks, sincerly Thorsten On Wed, 12 Feb 2003 23:57:52 James Klicman wrote: Hi Ashish, You will want to upgrade to version 2.0 of the Pager tag library. It is compatible with JSP 1.2 and Tomcat 4.1.12. -James On Wed, Feb 12, 2003 at 04:37:42PM -0800, Ashish Kulkarni wrote: Hi, I have been using the pager tag lib from http://jsptags.com/tags/navigation/pager/index.jsp for controling the number of records to be displayed on each JSP, It was working fine on tomcat4.0.4, but since i migrated to tomcat4.1.12, it is not working I get 10 records on first page, but nothing on next where as there are 45 records in file hAs any one got this problem?? need help Ashish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Taglibs are not interpreted with Tomcat 4.1.18
On Wed, 12 Feb 2003 11:53:40 Sean Dockery wrote: What about your tag-class definition? THe tld descriptors are located in /WEB-INF (see prev. message), the classes are located in /WEB-INF classes (matching the tld definitions). the taglibs are included in /WEB-INF/web.xml (at the end). no exceptions are thrown from catalina... the jsp pages are interpreted, but not the custom tags. What version J2SDK are you running? 1.4.1 Linux X86, Tomcat 4.1.18LE _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Taglibs are not interpreted with Tomcat 4.1.18
On Wed, 12 Feb 2003 13:13:09 Sean Dockery wrote: Uh, no. tagclass is not defined anywhere in your original message. You omitted it. tag tagclasswhat did you put in here?/tagclass /tag ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion jspversion1.1/jspversion shortnamekato/shortname uri/WEB-INF/katolib.tld/uri tag namedb_dropdown/name tagclassorg.sourcepark.taglibs.kato.db_dropdown/tagclass bodycontenttagdependent/bodycontent ... /tag /taglib the tagclass (for example) exists under /WEB-INF/classes/org.sourcepark.taglibs.kato.db_dropdown.class _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
coyote connector: timeout log messages and broken sessions
Hi, how can i disable the coyote timeout (error) messages with tomcat 4.1.18 and apache 1.3.x. there is also a problem with timed out sessions under tomcat. thanks and best regards, thorsten _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
valve class cannot be found
i have written a valve class (inherited from ValveBase) and try to include this class within the host tag in server xml. the class is placed in the /WEB-INF/classes directory in a package structure. starting tomcat 4.1.18 LE (connected with the ajp13 connector to apache; not the coyote connector and disabled mx beans support) results in a class not found exception. placing the valve class in CATALINA_HOME/common/classes results in class not found exceptions for the classes in CATALINA_HOME/server/lib/*.jar. where must i place the valve class(es), so that tomcat can find and load them? best regards, thomas ps sorry for my english _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]