uebung1/aufgabe22

This commit is contained in:
2026-02-12 17:23:49 +01:00
parent c3299e0694
commit 651f41f023
3 changed files with 47 additions and 0 deletions

View 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>

View 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>

View 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>