Directory and file structure …
\webapps
\ch01
\META-INF
MANIFEST.MF
\WEB-INF
web.xml
index.jsp
index.jsp contents …
<html>
<head>
<title>Expression Language Test</title>
</head>
<body>
<h1>Expression Language Test</h1>
<hr>
There are ${6 + 1} bears in the cave !!
</body>
</html>
web.xml contents …
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<description>
Wrox Beginning JavaServer Pages Examples - Chapter 1
</description>
<display-name>Chapter 1 Example (Wrox Beginning JavaServer Pages)</display-name>
</web-app>
The above works fine from the Browser accessing the Tomcat 5 container; but from the My Eclipse Preview application, it looks like this …
Expression Language Test
——————————————————————————–
There are ${6 + 2} bears in the cave !! !!
Comment ….
Having to use Tomcat outside the IDE is a kludgy way to preview your work … any suggestions (other than putting the EL in attribute values)? Is this a limitation of Eclipse or the MyEclipse plug-in? If so, will it be corrected in a future release?