<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>serv</servlet-name>
<servlet-class>EncodingType</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>serv</servlet-name>
<url-pattern>/serv</url-pattern>
</servlet-mapping>
</web-app>
🔒 Locked
[java] More help needed for servlets
Advertisement
Original Post
I posted a while back for help on setting up servlets. Well I finally got around to getting my server up and now I need a little more help.
I have the server running, I have the servlets written and compiled... but that''s where I''m lost. When I try loading them, Apache gives me an error. I figured I needed to configre my web.xml, so I changed it to read:
However, I don''t know much of anything about XML and I think my problem is somewhere in there. I''m not sure tho. Any help would be very appriciated.
For running servlets you just need tomcat. First of all you should try to run your servlets under tomcat. If this is up and running connect apache and tomcat. If you are new to the topic I suggest do everything step by step and don''t try to do everything in the first step.
ciao torsten
ciao torsten
There is a very good tutorial on JSP, servlets and tomcat here at http://wdvl.internet.com/Authoring/Java/Servlets/index.html
D-
-----------
Érdely!
D-
-----------
Érdely!
>> For running servlets you just need tomcat.
=-/ I said I have tomcat up and going, but I don''t know what to do to set up the servlets. I have the class files in my /ROOT/WEB-INF/classes/ folder, but I think I need to configure something (web.xml I believe) before I can call them remotely from a browser.
=-/ I said I have tomcat up and going, but I don''t know what to do to set up the servlets. I have the class files in my /ROOT/WEB-INF/classes/ folder, but I think I need to configure something (web.xml I believe) before I can call them remotely from a browser.
After a little fiddling, I got it to change from one error to another:
What does this mean tho?
Apache Tomcat/4.0.3 - HTTP Status 405 - HTTP method GET is not supported by this URL
--------------------------------------------------------------------------------
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
What does this mean tho?
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement