Let's create a website using the framework of the subject Breakdown of all 4 times ** 1. Create a front page with View jsp **
--Eclipse installed --DB2 installed (required for 4th time)
Right-click on Eclipse's Project Explorer → New → Create Dynamic Web Project → Marketed Runtime: Select tomcat7 → Done
Right-click WebContent → New → Create jsp file (image is after creation)
Create a text submission form ↓
Top.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<title>Top</title>
<h1>top</h1>
</head>
<body>
<form action="(Destination)" method="post"> <!--Declaration to send ↓ information in post-->
<input type="text" name="keyword"> <!--Search keyword input field-->
<input type="submit" value="Search"> <!--Keyword send button-->
</from>
</body>
</html>
2. Select the server version. Let's set it to 7 this time. Then click Next * If it doesn't work, use java8
3. Place the project you want to run. After adding, click Finish 4. Click the ↓ Run button → Run on the server → Click Finish
Understanding the MVC framework with server-side Java 2/4 Model http://qiita.com/kyogom/items/e31f3fa0cbb2fff70d26
Recommended Posts