Two Laptop Bag
The moose likes Tomcat and the fly likes Beginner Tomcat JSP problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Beginner Tomcat JSP problem" Watch "Beginner Tomcat JSP problem" New topic

Beginner Tomcat JSP problem

marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

not sure if this is right forum, I am beginner completing the Head First Servlets and JSP book. Stuck on page 89.

using JDK 1.6, Tomcat 5.0, on XP

environment variables are set as follows
CLASSPATH= C:\Program Files\Java\jdk1.6.0\bin
JAVA_HOME = C:\Program Files\Java\jdk1.6.0\bin
TOMCAT_HOME = C:\Program Files\Apache Software Foundation\Tomcat 5.0
the servlet is compiled, and calls the following result.jsp

when the result.jsp is called the result is

Anybody any ideas?


when in doubt put it in parenthesis and stick a dollar sign in front of it, only good can come from this.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Why is JAVA_HOME pointing to the bin folder?

[Asking smart questions] [About Bear] [Books by Bear]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Also, there is no need for your CLASSPATH environment variable to point to the JDK/bin directory.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
marten kay
Ranch Hand

Joined: Feb 03, 2007
Posts: 178

thanks guys

I set my JAVA_HOME to C:\Program Files\Java\jdk1.6.0

and a lot of other things, including an article by Elliotte Rusty Harold on classpaths

The joy of my first servlet JSP working

I'm a newbie to OO, I have completed Head First Java, XHTML CSS, Ajax, OOAD, Design Patterns and read half of Larman. The hardest thing I have encountered so far is environment variables.

[ June 25, 2007: Message edited by: marten kay ]
I agree. Here's the link:
subject: Beginner Tomcat JSP problem
It's not a secret anymore!