Skip to content

Instantly share code, notes, and snippets.

@ksoumi
Last active August 1, 2019 04:47
Show Gist options
  • Save ksoumi/0f864ee1c68ce2118fe029773cf1ac26 to your computer and use it in GitHub Desktop.
Save ksoumi/0f864ee1c68ce2118fe029773cf1ac26 to your computer and use it in GitHub Desktop.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>UserApp</display-name>
<servlet>
<description></description>
<display-name>UserController</display-name>
<servlet-name>UserController</servlet-name>
<servlet-class>io.pivotal.workshop.controller.UserController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserController</servlet-name>
<url-pattern>/user</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>WelcomeController</display-name>
<servlet-name>WelcomeController</servlet-name>
<servlet-class>io.pivotal.workshop.controller.WelcomeController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WelcomeController</servlet-name>
<url-pattern>/welcome</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>LogoutController</display-name>
<servlet-name>LogoutController</servlet-name>
<servlet-class>io.pivotal.workshop.controller.LogoutController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LogoutController</servlet-name>
<url-pattern>/logout</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>DisplayUsers</display-name>
<servlet-name>DisplayUsers</servlet-name>
<servlet-class>io.pivotal.workshop.controller.DisplayUsers</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisplayUsers</servlet-name>
<url-pattern>/displayuser</url-pattern>
</servlet-mapping>
</web-app>
@Ridhwan786
Copy link

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment