Minimal web.xml web-app descriptor version 2.5


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://java.sun.com/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5. version="2.5">
  6. <display-name>Archetype Created Web Application</display-name>
  7. <!--
  8. <servlet>
  9. <servlet-name>HelloWorldExample</servlet-name>
  10. <servlet-class>cnx.mywebapp.HelloWorldExample</servlet-class>
  11. </servlet>
  12. <servlet-mapping>
  13. <servlet-name>HelloWorldExample</servlet-name>
  14. <url-pattern>/hello</url-pattern>
  15. </servlet-mapping>
  16. -->
  17. </web-app>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.