init
commit
e497fd5202
|
@ -0,0 +1,12 @@
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>elven.vip</groupId>
|
||||||
|
<artifactId>hello-world</artifactId>
|
||||||
|
<packaging>war</packaging>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>tomcatdemo</finalName>
|
||||||
|
</build>
|
||||||
|
</project>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||||
|
version="3.1">
|
||||||
|
<welcome-file-list>
|
||||||
|
<welcome-file>index.jsp</welcome-file>
|
||||||
|
<welcome-file>index.html</welcome-file>
|
||||||
|
</welcome-file-list>
|
||||||
|
</web-app>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Hello World !
|
|
@ -0,0 +1,18 @@
|
||||||
|
<%@ page language="java" %>
|
||||||
|
<html>
|
||||||
|
<head><title>Test.Web</title></head>
|
||||||
|
<body>
|
||||||
|
<h1><font color="blue">web deployment test</font></h1>
|
||||||
|
<table align="centre" border="1">
|
||||||
|
<tr>
|
||||||
|
<td>Session ID</td>
|
||||||
|
<% session.setAttribute("abc","abc"); %>
|
||||||
|
<td><%= session.getId() %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Created on</td>
|
||||||
|
<td><%= session.getCreationTime() %></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue