Hi all,
how to do xml mapping in tomcat5.5
i have an xml code here just tell me what should be thier in blank space

<web-app>
<servlet>
<servlet-name>firstservlet</servlet-name>
<servlet-class>........</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>firstservlet</servlet-name>
<url-pattern>.............</url-pattern>
</servlet-mapping>
</web-app >

thanks

<servlet-class>: You will put the name of the class. More specifically the name of the Servlet

<url-pattern>: The url that maps to the servlet. Example: If you have link that points to that url, the code inside the servlet will be invoked. You can put that url anywhere you could put the name of a jsp, or any other url

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.