| @@ -0,0 +1,16 @@ | ||
| package servlet; | ||
|
|
||
| import javax.servlet.RequestDispatcher; | ||
| import javax.servlet.ServletException; | ||
| import javax.servlet.http.HttpServlet; | ||
| import javax.servlet.http.HttpServletRequest; | ||
| import javax.servlet.http.HttpServletResponse; | ||
| import java.io.IOException; | ||
|
|
||
| public class DiesDas extends HttpServlet { | ||
| @Override | ||
| protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { | ||
| RequestDispatcher rd = req.getRequestDispatcher("/WEB-INF/diesdas.jsp"); | ||
| rd.forward(req, resp); | ||
| } | ||
| } |
| @@ -0,0 +1,17 @@ | ||
| package servlet; | ||
|
|
||
| import javax.servlet.RequestDispatcher; | ||
| import javax.servlet.ServletException; | ||
| import javax.servlet.http.HttpServlet; | ||
| import javax.servlet.http.HttpServletRequest; | ||
| import javax.servlet.http.HttpServletResponse; | ||
| import java.io.IOException; | ||
|
|
||
| public class Welcome extends HttpServlet { | ||
| @Override | ||
| protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { | ||
| System.out.println("asdasd"); | ||
| RequestDispatcher rd = req.getRequestDispatcher("index.jsp"); | ||
| rd.forward(req, resp); | ||
| } | ||
| } |
| @@ -0,0 +1,16 @@ | ||
| <%-- | ||
| Created by IntelliJ IDEA. | ||
| User: chris | ||
| Date: 03.03.18 | ||
| Time: 15:09 | ||
| To change this template use File | Settings | File Templates. | ||
| --%> | ||
| <%@ page contentType="text/html;charset=UTF-8" language="java" %> | ||
| <html> | ||
| <head> | ||
| <title>Title</title> | ||
| </head> | ||
| <body> | ||
| diesdas | ||
| </body> | ||
| </html> |
| @@ -0,0 +1,17 @@ | ||
| <%-- | ||
| Created by IntelliJ IDEA. | ||
| User: chris | ||
| Date: 03.03.18 | ||
| Time: 14:45 | ||
| To change this template use File | Settings | File Templates. | ||
| --%> | ||
| <%@ page contentType="text/html;charset=UTF-8" language="java" %> | ||
| <html> | ||
| <head> | ||
| <title>Title</title> | ||
| </head> | ||
| <body> | ||
| /WEB-inf/moep.jsp | ||
|
|
||
| </body> | ||
| </html> |
| @@ -1,7 +1,25 @@ | ||
| <?xml version="1.0" encoding="ISO-8859-1"?> | ||
|
|
||
| <web-app xmlns="http://java.sun.com/xml/ns/javaee" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | ||
| version="3.0"> | ||
| <servlet> | ||
| <servlet-name>welcome</servlet-name> | ||
| <servlet-class>servlet.Welcome</servlet-class> | ||
| </servlet> | ||
| <servlet-mapping> | ||
| <servlet-name>welcome</servlet-name> | ||
| <url-pattern>/welcome</url-pattern> | ||
| </servlet-mapping> | ||
|
|
||
| <servlet> | ||
| <servlet-name>DiesDas</servlet-name> | ||
| <servlet-class>servlet.DiesDas</servlet-class> | ||
| </servlet> | ||
| <servlet-mapping> | ||
| <servlet-name>DiesDas</servlet-name> | ||
| <url-pattern>/diesdas</url-pattern> | ||
| </servlet-mapping> | ||
|
|
||
| </web-app> |
| @@ -0,0 +1,3 @@ | ||
| h1 { | ||
| color: red; | ||
| } |
| @@ -1,6 +1,17 @@ | ||
| <%@ page isELIgnored="false" %> | ||
|
|
||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" | ||
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <title>Document</title> | ||
| <link link rel="stylesheet" type="text/css"href="css/base.css" /> | ||
| </head> | ||
| <body> | ||
| <h1>aälkdsjalsjkd</h1> | ||
| ${pageContext.request.contextPath} | ||
| </body> | ||
| </html> |