-Tim
Luke Vanderfluit wrote:
Hi,
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
-=-=-=-=-=-=-=-=-=-=-=-=-
<HTML>
<HEAD>
<TITLE>Simple JSP Page</TITLE>
</HEAD>
<BODY>
<H2>Request Origin</H2>
Host Name: <%= request.getRemoteHost() %>
<BR>
IP Address: <%= request.getRemoteAddr() %>
</BODY>
</HTML>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
simple_xml.jsp --> doesn't work
error: org.apache.jasper.JasperException: jsp.error.data.file.read
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE root PUBLIC "-//Sun Microsystems Inc.//DTD Java Server Pages Version 1.1//EN" "http:/java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
<jsp:root xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd" version="1.2">
<%@ page errorPage="simple.jsp" %>
<HTML> <HEAD> <TITLE>Simple JSP Page</TITLE> </HEAD> <BODY> <H2>Request Origin</H2> Host Name: <jsp:expression>request.getRemoteHost()</jsp:expression> <BR> IP Address: <jsp:expression>request.getRemoteAddr()</jsp:expression> </BODY> </HTML> </jsp:root> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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.
thanks, kind regards, Luke
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]