File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet ......a simple problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet ......a simple problem" Watch "servlet ......a simple problem" New topic

servlet ......a simple problem

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
i have installed jswdk-1.0.1..
i want to call a servlet through a html page..
my question is where to store the html page....
to get desired output...
incase of pws we store im wwwroot of inetpub...but in case of
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
As I recall, that is covered in the documentation that the JSWDK installs.
Why are you working with jswdk 1.0.1? Sun turned over development of the reference implementation of servlets and JSP to the Apache organization.
This project, known as Tomcat, is easy to install and supports the latest APIs.
prakash muthu
Ranch Hand

Joined: Sep 06, 2000
Posts: 75
I think you suppose to copy your class file into examples->web-inf directory. other wise let me know the directory structure of jswdk1.0.1
with regards

Prakash.M<BR>Bangalore- India<BR>(
jam bingo

Joined: Apr 02, 2003
Posts: 2
first, Tomcat is NOT easy to install, only advanced users familiar with Servlet configuration files and .XML should attempt it.
second, jswdk is not the environment in which you want to learn how to run a Servlet engine. download JRun from Allaire, the demo version is full featured up to 5 users, so it works great for testing.
third, once JRun is installed just stick your servlets under the "servlets" subdirectory under JRun
fourth, code your HTML pages to point to the JRun servlets subdir like this: "http://mycomputer:8080/servlet/SomeServlet"
fifth, be aware that the subdir under JRun will be "servlets" but your HTML code <href> and <form action= > tags will point to "servlet"...
hope this helps...

best.<p>hive_slave<br />dude!!! sweet!!! dude!!! sweet!!!
I agree. Here's the link:
subject: servlet ......a simple problem
jQuery in Action, 3rd edition