1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| <%--
Document : index
Created on : 2 déc. 2009, 12:38:46
Author : kohan
--%>
<%@page contentType="text/html" 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>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
<% out.println(
" <form action=index.jsp method=post>"+
"nom :<input type=text name=nom >"+
"<input type=submit value=Envoyer >"+
"<input type=reset value=Remise à zero >"+
" </form> ");
%>
<p> la valeur de nom est:<br>
<%
String nom;
nom=request.getParameter("nom");
%>
<%=nom%>
</p>
</body>
</html> |