#2
firstbobo2018-01-09 14:23
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java. prefix="c" %>
<html>
<head>
</head>
<body>
<form action="selectData.jsp" method="post" name="form1" style="padding=left:2em;">
<p><input name="userName" type="text"/>,你的基础分是<input name="base"
type="text" size="6" value="10" readonly="true"/>,目前表现是:</p>
<select name="level">
<option value="4" ${param.level==4?'selected':"}>好</option>
<option value="2" ${param.level==2?'selected':"}>一般</option>
<option value="0" ${param.level==0?'selected':"}>差</option>
</select>
<input type="submit" name="submit" value="提交"/>
</form>
<c:if test="${!empty param.userName}">
<p>刚才提交的数据是:<br/>姓名:${param.userName },选项的值是:${param.level }<br/>
合计的分数是:${param.base+param.level }</p>
</c:if>
</body>
</html>
这是我打开网页显示的问题:
只有本站会员才能查看附件,请 登录