PAN-18 WORKING HOMEPAGE

This commit is contained in:
zeliu
2019-03-24 17:02:50 -06:00
parent 3b4753215c
commit 98f6b9e2b7
3 changed files with 5 additions and 33 deletions
@@ -1,28 +0,0 @@
package edu.msudenver.tsp.website.controller;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.Map;
@Slf4j
@Controller
@AllArgsConstructor
@RequestMapping("/")
public class HomeController {
@GetMapping("")
public String home(Map<String, Object> model) {
model.put("message", "Welcome to Theorem Prover !!");
return "index";
}
@RequestMapping("/next")
public String next(Map<String, Object> model) {
model.put("message", "You are in new page !!");
return "Theorem";
}
}
@@ -7,20 +7,20 @@
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Theroem Prover</title>
<title>Theorem Prover</title>
</head>
<body>
<div>
<div>
<h1>Theorem Prover</h1>
<h2>Hello! ${message}</h2>
<h2>Hello! Welcome to Theorem Prover !!</h2>
Click on this <strong><a href="next">link</a></strong> to visit theorem entering page.
Click on this <strong><a href="/theorem/">link</a></strong> to visit theorem entering page.
</div>
</div>
</body>