题目要求页面通过内置对象获取inputString.jsp
页面提交的字符串,所以需要把表单中的数据先存储在session对象中,之后再用超链接转到computer.jsp
页面
效果图
inputString.jsp
computer.jsp
源码
inputString.jsp
<%--
Created by IntelliJ IDEA.
User: Atlantis
Date: 2019-03-27
Time: 22:25
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=GB2312" language="java" %>
<html>
<head>
<title>inputString.jsp</title>
</head>
<body>
<%
String str = request.getParameter("boy");