This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes running servlets 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 » Java » Servlets
Bookmark "running servlets" Watch "running servlets" New topic

running servlets

jesse jay

Joined: Sep 23, 2000
Posts: 11
I am running jswdk-1.0.1 I have modified my classpath var and made other configs according to the "core Servlets & jsp" book.
I can get the servlet to compile, but I try to view it be directing my brower to http://localhost/servlet/HelloWorld and I get "the page cannot be displayed" the servlet is in the directory specified by jswdk: jswdk/webpages/web-inf/servlets
This is driving me crazy, if anyone could offer some help to get this going I would be eternally grateful.
Brian Burke

Joined: Oct 26, 2000
Posts: 15
Did you stop and restart the server after you compiled and placed the file in the */WEB-INF/Servlets directory? Also there is a file in the WEB-INF directory called Open that file with notepad and add this code:
I hope this helps. I think you need to declare each servlet in this fashion in the file. I've done that for each of my servlets, as well as stop and restart the server after I compile. Hope this helps.
I agree. Here's the link:
subject: running servlets
Similar Threads
how can I post my work online?
Can not find server or DNS error
Reading local file
problem with mapping using servletrunner
problem with running servlets using tomcat3.2.4