Okay, I put the Java expression first so that now the JSP file looks
like this:

  <%= response.setContentType("text/html;charset=UTF-8") %><%@ include
file="mary.xml" %>


After I recompiled and tried to access the page I got this error
message:

  > org.apache.jasper.JasperException: Unable to compile class for
JSPNote: sun.tools.javac.Main has been deprecated.
  > An error occurred at line: 1 in the jsp file: /mary.jsp

  > Generated servlet error:
  >
/opt/local/jakarta-tomcat-4.0.6-LE-jdk14/work/Standalone/localhost/acsam
/mary$jsp.java:54: Incompatible type for method. Can't convert void to
java.lang.Object.
  > out.print( response.setContentType("text/html;charset=UTF-8") );

Paul.


**************************

Charlie wrote:

Make sure you have it *before* your include and before any whitespace in
your jsp.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to