I have this piece of code that sets the content type dynimically in the
jsp file. It compiles and runs. My question is, how is this information sent to the
client? I do not see an HTML tag generated, but when I check the encoding in the
client, it has the correct encoding. However, the actual characters are not displayed
properly (????).
The method getCharacterSet() returns a string, "text/html; charset=windows-874".
I'm trying to convert a static encoding into a dynamic encoding. The previous scheme
used <%@page contentType="text/html; charset=windows-874"%>.
This is the jsp page:
<%@ page import="com.upfront.htmlc.*"%>
<%@ page import="com.upfront.htmlc.gui.*"%>
<jsp:useBean id="htmlcSession" scope="session" class="com.upfront.htmlc.HtmlcSession"/>
<%
response.setContentType(htmlcSession.sessionInfo.getCharacterSet());
StatusPage thisPage = htmlcSession.guiEngine.pageManager.statusPage;
if( htmlcSession.custMessagingEngine != null ) htmlcSession.custMessagingEngine.processMessagePost( request );
%>
<html>
<head>
<script>
<%=thisPage.getPageDomainScript()%>
</script>
</head>
<body bgcolor="<%=thisPage.getBackgroundColor()%>" topmargin=0 bottommargin=0 leftmargin=2 rightmargin=0 onDragDrop="return false;">
<center><%=thisPage.statusMessage.toHTML()%></center>
</body>
</html>
Any ideas of what's going on?
/Peter
