uebung1/aufgabe22
This commit is contained in:
17
src/main/webapp/uebung1/aufgabe22/nameAnzeigen.jsp
Normal file
17
src/main/webapp/uebung1/aufgabe22/nameAnzeigen.jsp
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<%@ 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>Name anzeigen</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<%
|
||||||
|
String name = request.getParameter("name");
|
||||||
|
session.setAttribute("name",name);
|
||||||
|
%>
|
||||||
|
Name: <%=name %><br/>
|
||||||
|
<a href="nameAnzeigenWeiter.jsp">Weiter</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
15
src/main/webapp/uebung1/aufgabe22/nameAnzeigenWeiter.jsp
Normal file
15
src/main/webapp/uebung1/aufgabe22/nameAnzeigenWeiter.jsp
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<%@ 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>NameAnzeigenWeiter</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<%
|
||||||
|
String name = (String)session.getAttribute("name");
|
||||||
|
%>
|
||||||
|
Name: <%=name %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
15
src/main/webapp/uebung1/aufgabe22/namenFormular.jsp
Normal file
15
src/main/webapp/uebung1/aufgabe22/namenFormular.jsp
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<%@ 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>Namensformular</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form action="nameAnzeigen.jsp">
|
||||||
|
Name: <input type="text" name="name"/>
|
||||||
|
<input type="submit" value="Weiter"/>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user