it is the characters.  No chinese is displayed by this e-mail (my e-mail can
display chinese), you are not using the correct unicode or UTF-8 format.


----- Original Message -----
From: "Partha Ranjan Das" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 1:07 AM
Subject: Re: problem with chinese output in jsp/tomcat 4.1.12


> Hi,
> Thanks for the mail. I tried this but still the output into the browser is
> looking like:
>
> <%@ page contentType = "text/html; charset=big5"%><BR>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> <TITLE> New Document </TITLE>
> <META NAME="Generator" CONTENT="EditPlus">
> <META NAME="Author" CONTENT="">
> <META NAME="Keywords" CONTENT="">
> <META NAME="Description" CONTENT="">
> </HEAD>
>
> <BODY>
> this is a chinese output:
> <br>
> <%if("1".equals(request.getParameter("sel1")))
> out.println("??????");%>
> <%out.println("hi from partha");%>
> </BODY>
> </HTML>
> ; which is the original jsp page. No chinese is displyed onto my browser.
>
> Is it a problem with tomcat being unable to process tag in a page that
> contains chinese. Is it that I have to do some setting into the tomcat for
> this?
> Thanks in advance,
> Regards,
> Partha
>
>
> -----Original Message-----
> From: Richard Yee [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 11:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: URL Mapping
>
>
> Partha,
> What does your question have to do with the subject of your email "Re: URL
> Mapping"?
> If you are going to post to this list, you should have a subject that
> corresponds to the content of your mail.
>
> To answer you question anyway, your seeing exactly what your page2.jsp is
> supposed to output according to the way you have programmed the logic.
>
> try this instead:
> <% if( "1".equals(request.getParameter("sel1"))) {
>           out.println("??????<br>");
>           out.println("hi from partha");
>        }  %>
> </BODY>
>
> your original code would also produce a null pointer exception if the sel1
> parameter was not passed to page2.jsp.
>
> Another way you could debug this yourself is to use an IDE that can debug
> JSP's like JDeveloper or JBuilder.
>
> Regards,
>
> Richard
>
> At 11:20 AM 12/11/2002 +0530, you wrote:
> >Hi,
> >I am using Tomcat 4.1.12. My requirement is to get Chinese characters in
> JSP
> >pages.
> >I am using the following code:
> >
> >in one page which has the form I am using:
> ><BODY>
> ><form name=frm1 action="page2.jsp" method=POST>
> ><Select name=sel1>
> ><option value=1>??????</option>
> ><option value=2>????</option>
> ></select><br>
> ><input type=submit value=submit>
> ></form>
> ></BODY>
> >
> >
> >in the next page (page2.jsp) i am using the following code:
> ><BODY>
> >this is a chinese output:
> ><br>
> ><%if(request.getParameter("sel1").equals("1"))%>
> >??????
> ><%out.println("hi from partha");%>
> ></BODY>
> >
> >The problem is that in any case i am getting the output as the chinese
> chars
> >that have been written into the jsp body of page2.jsp irrespective of
> >whether i choose the first or the second option. and in the html output
is
> >also similar to the jsp code, which means that the jsp translation is not
> >taking place in the tomcat. For other english pages it is happening
> >perfectly alright.
> >Any idea what can be done so that the translation takes place and the
> >conditional display of chinese is possible. Also shall be highly grateful
> if
> >you give idea as to how to initialize and manipulate chinese strings.
> >
> >Thanks in advance,
> >Regards,
> >Partha
> >
> >ps- those ? marks are the chinese characters. I am using Unicode text
> option
> >while saving the jsp files. So character conversion to ASCII while saving
> is
> >ruled out. In fact the IE output is giving chinese.
> >*********************************************************************
> >Disclaimer: The information in this e-mail and any attachments is
> >confidential / privileged. It is intended solely for the addressee or
> >addressees. If you are not the addressee indicated in this message, you
may
> >not copy or deliver this message to anyone. In such case, you should
> destroy
> >this message and kindly notify the sender by reply email. Please advise
> >immediately if you or your employer does not consent to Internet email
for
> >messages of this kind.
> >*********************************************************************
> >
>
>___________________________________________________________________________
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> >of the message "signoff SERVLET-INTEREST".
> >
> >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> >Resources: http://java.sun.com/products/servlet/external-resources.html
> >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> *********************************************************************
> Disclaimer: The information in this e-mail and any attachments is
> confidential / privileged. It is intended solely for the addressee or
> addressees. If you are not the addressee indicated in this message, you
may
> not copy or deliver this message to anyone. In such case, you should
destroy
> this message and kindly notify the sender by reply email. Please advise
> immediately if you or your employer does not consent to Internet email for
> messages of this kind.
> *********************************************************************
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to