Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot activate servlet in the Web browser

 
Cathy Valdez
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OS=Windows98, Tomcat v. 4.1.27.exe, J2SE/JDK v. 1.3.1
contents of AUTOEXEC.BAT:
set PATH=c:\jdk1.3.1\bin;%PATH%
set CLASSPATH=%CLASSPATH%;.; c:\ServletDevel\database;c:\ServletDevel\database\lib\conn_pool.jar;c:\Tomcat\common\lib\servlet.jar
set JAVA_HOME=c:\jdk1.3.1

Compilation of servlet files that are included in this web application is successful.

Below is the content of Tomcat\webapps\database\WEB-INF\web.xml

I want this example web application with database activate the Scramble Game Servlet and run in the Web browser.
When I entered the URL http://localhost:8080/database/ for the message form in the Address field of Internet Explorer, the page for http://localhost:8080/database/index.html
below is displayed:

Duke's Arcade
Select from one of the following games:
�Word Scramble
When I clicked the Word Scramble above, the page for http://localhost:8080/database/wordScramble displayed the errors below:

What do errors above mean? What should I do to correct those errors so to activate the servlet in the Web browser?
The topic is integrating web application with database, I�ve done nothing with the connection to the database management system, and I don�t know how will I do it. What DBMS should I have installed in my PC so to use for this?
Can anybody there help?
Any suggestions regarding this would be greatly appreciated.
Thanks in advance.
Regards,
Cathy
[ October 30, 2003: Message edited by: Gregg Bolinger ]
 
G Raghavan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cathy
if you post the code for ScrambleGameServlet.java it will be helpful. It appears to be a error in that java code.
 
Cathy Valdez
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G Raghavan,
Thank you for suggestion.
Below is the code for ScrambleGameServlet.java:

Any help from anybody would be greatly appreciated.
Cathy
[ October 30, 2003: Message edited by: Gregg Bolinger ]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cathy, a couple of things...
1. We have a Naming Policy here at Javaranch. We tend not to allow initials as last names. However, you can use initials for first names. Please change your display name to conform to our policies.
2. I have edited your posts to include UBB Code Tags. Using these tags makes reading your posted code and errors much more pleasant as it keeps the formatting of your code instead of left justifying everything.
Thanks for the cooporation. We will continue to try and help you as much as possible with your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic