修改信息时从servlet获取信息输出在jsp页面上但是radio单选的回显搞不好了,然后查资料找了一个最基础的servlet写法,代码如下只写了jsp中的代码:
<%@page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<title>修改页面</title>
</head>
<body>
<%
String sex=(String)request.getAttribute("sex");
%>
<h2>修改信息</h2>
<form action="<%=request.getContextPath()%>/modify2?id=<%=request.getAttribute("id") %>" method="post">
<table>
<tr