Hello Peter!

PCE> I have this piece of code that sets the content type dynimically in the
PCE> jsp file. It compiles and runs. My question is, how is this information sent to 
the
PCE> client? I do not see an HTML tag generated, but when I check the encoding in the
PCE> client, it has the correct encoding. However, the actual characters are not 
displayed
PCE> properly (????).
It's in the HTTP Content-Type header.
Visit http://tagunov.tripod.com/i18n/view.html to lear how to view
this.

PCE> The method getCharacterSet() returns a string, "text/html; charset=windows-874".

PCE> I'm trying to convert a static encoding into a dynamic encoding. The previous 
scheme
PCE> used <%@page contentType="text/html; charset=windows-874"%>.

PCE> This is the jsp page:

PCE> <%@ page import="com.upfront.htmlc.*"%>
PCE> <%@ page import="com.upfront.htmlc.gui.*"%>
PCE> <jsp:useBean id="htmlcSession" scope="session" 
class="com.upfront.htmlc.HtmlcSession"/>
PCE> <%
PCE>     response.setContentType(htmlcSession.sessionInfo.getCharacterSet());
PCE>     StatusPage thisPage = htmlcSession.guiEngine.pageManager.statusPage;
PCE>     if( htmlcSession.custMessagingEngine != null ) 
htmlcSession.custMessagingEngine.processMessagePost( request );
%>>
PCE> <html>
PCE> <head>
PCE>     <script>
PCE>         <%=thisPage.getPageDomainScript()%>
PCE>     </script>
PCE> </head>
PCE> <body bgcolor="<%=thisPage.getBackgroundColor()%>" topmargin=0 bottommargin=0 
leftmargin=2 rightmargin=0 onDragDrop="return false;">
PCE> <center><%=thisPage.statusMessage.toHTML()%></center>
PCE> </body>
PCE> </html>


PCE> Any ideas of what's going on?
When I was agitated by the question I wrote an aritcle.
It is too hash in the middle, but still
http://tagunov.tripod.com/i18n/i18n.html


--
Best regards,
 Anhon Tagunov                            mailto:[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to