<%@ page contentType="text/html; charset=GBK" %>
<hr><h2>选择修改用户权限!</h2><hr>
<form name=form1 method="post" action="actionUserEdit.do">
用户名:<%=request.getParameter("username")%> <INPUT type=hidden size=15 name=username value="<%=request.getParameter("username")%>"><P>
权限:
<select size=1 name="grade">
<option value="0">管理员</option>
<option value="1">斑竹</option>
<option value="2">普通用户</option>
</select>
论坛类别:
<select size=1 name="sort">
<option value="java">java</option>
<option value="1">delphi</option>
</select>
<p>
<INPUT class=buttonface type=submit value=" 确 定 ">
<INPUT class=buttonface type=reset value=" 清 除 "></p>
</form>
</BODY>
</HTML>
我想取用户名,权限,论坛类别的值保存在数据库里要怎么做?
这个是Action的代码
public class ActionUserEdit extends Action {
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response) {
userAdminForm userAdminForm = (userAdminForm) actionForm;
}
要在Action里写什么才能把用户名,权限,论坛类别的值保存在数据库里?