how to configure for servlets
i m new to servlets. can any body plz tell me what and how to do configurations for servlets
i m new to servlets. can any body plz tell me what and how to do configurations for servlets
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