how to configure for servlets

i m new to servlets. can any body plz tell me what and how to do configurations for servlets

[99 byte] By [sid25a] at [2007-11-27 11:54:58]
# 1

hi,

previously you installed any server or not,

if not install any one of web server like javawebserver , tomcat etc...

steps to install tomcat & configure:

http://forum.java.sun.com/thread.jspa?threadID=5193463

after successfull config,

create a servlet program,compile and store under tomcatx.x\webapps\root\WEB-INF\classes

open a web.xml under WEB-INF and add <servlet> & <servlet-mapping>

ex:

**

<servlet>

<servlet-name>servletname</servlet-name>

<servlet-class>package.classname</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>servletname</servlet-name>

<url-pattern>/urlvalue</url-pattern>

</servlet-mapping>

restart tomcat

run : http://localhost:8080/urlvalue

drvijayy2k2a at 2007-7-29 18:59:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...