Hi,
    I have met this question(question 1) before. I do not know the reason.
But I use the following instead:
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <%@ page language="java" %>
    ...
    <jsp:include page="/servlets/someServlet" flush="true"/>
    ...
    </html>

            or

    <html>
    <%@ page language="java" contentType="text/html; charset=gb2312"%>
    ...
    <!--here can not include servlets-->
    <%@ include file="/include/header.jsp"%>
    ...
    </html>

    for your question one, using the first solution.


xgh

----- Original Message -----
From: Pang Zhenqi
To: [EMAIL PROTECTED]
Sent: Thursday, June 15, 2000 09:05 PM
Subject: About Jsp include Servlet(urgent)


Hi all,
I use Weblogic5.0.1, I have a Jsp file like below:

<%@ page language="java" session="true"
contentType='text/html;charset=gb2312' %>
...
<% someClass=(someClass)(session.getValue("name")); %>
<jsp:include page="/servlets/someServlet" /> // someServlet generate a table
here
...

I have two questions:
1. Chinese characters in the table can't be displayed properly. (Jsp and
Servlet can display very well seperately)
2. Jsp can't get the session(set by another servlet) value sometime.

Any help are very appreciately.

Thanks!
Pang

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to