tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Vanderfluit <>
Subject using xml in jsp files
Date Tue, 09 Sep 2003 03:52:20 GMT

I'm a student learning about JSP and servlets,
I currently have some example JSP files that run OK using the <% %>
tags, but won't run when using <jsp:expression></jsp:expression> tags

I have 2 files taken from a book by Dustin Callaway, 
simple.jsp --> works fine
<TITLE>Simple JSP Page</TITLE>
<H2>Request Origin</H2>
Host Name: <%= request.getRemoteHost() %>
IP Address: <%= request.getRemoteAddr() %>
simple_xml.jsp --> doesn't work
error: org.apache.jasper.JasperException:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE root PUBLIC "-//Sun Microsystems Inc.//DTD Java Server Pages
Version 1.1//EN"

<jsp:root xmlns:jsp=""

<%@ page errorPage="simple.jsp" %>

<TITLE>Simple JSP Page</TITLE>
<H2>Request Origin</H2>
Host Name:
IP Address:

any ideas why the XML is not working?
I'm using 
Redhat 9, tomcat 4.1.27, java sdk 1.4.2
Apparently tomcat 4.x complies with jsp spec 1.2, which as far as I can
see includes the XML syntax used above. 

kind regards,

"when my computer smiles, I'm happy"
===============================.~ ~,
Luke Vanderfluit               |'/']
Mobile: 0421 276 282            \~/`

View raw message