English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi friends,I have successfully compiled the HelloWorld program using the tomcat5.5 and while running it in the internet explorer it throws me the page cannot display message.Please tell where to save the javaservlet files? and how to run the servlet program using the correct location?

2006-09-19 01:25:40 · 3 answers · asked by Geetha 1 in Computers & Internet Programming & Design

3 answers

Browse through
Tomcat5.5/webapps/examples/servlet
Save the class file there
then to access it; IE, to execute it
type the following in the address bar of the IE
http://localhost:8080/examples/servlets/[the class name of the servlet](no extension required.

good luck

2006-09-19 02:10:34 · answer #1 · answered by Anand 3 · 2 0

Checkout WAR (not JAR) file structures; there is an XML manifest file that you have to write. Either Sun or Apache documented those.

Apache-Tomcat can easily get a sample HelloWorld that is working fully, you can duplicate that example yourself; rename .war to .zip to open up.

Try JSP (Java Server Pages) since it is a specialized version of Servlet.

2006-09-19 01:35:25 · answer #2 · answered by Andy T 7 · 1 0

a million) obtain the JDK 2) set up a progression atmosphere (Textpad, Eclipse, Notepad) 3) shop this in a document called ExampleProgram.java type ExampleProgram { public static void considerable(String[] args){ equipment.out.println("i'm an common application"); } } 4) run this methodology utilising javac ExampleProgram.java java ExampleProgram

2016-10-17 06:33:45 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers