wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Beginner Tomcat JSP problem" Watch "Beginner Tomcat JSP problem" New topic
Author

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?

Thanks


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
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Why is JAVA_HOME pointing to the bin folder?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

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.

Cheers
[ June 25, 2007: Message edited by: marten kay ]
 
wood burning stoves
 
subject: Beginner Tomcat JSP problem
 
Similar Threads
Head First Servlets and JSP simple exercise problem
HFSJ struts Example pgm
HTTP Status 500 - error running servlet with JSP
Compiling result.jsp (page 89 HFSJ)
Request Resource not available JSP