test.jsp
<html:html>
<body>
.......
<html:text property="uname" /><!--新添加 的-->
.......
<body>
</html:html>
TestForm.java
..........
//下面是新添加的
private String uname;
public String getUname()
{return uname:}
public void setUname(String uname)
{this.uname=uname;}
...........
TestAction.java
...........
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
TestForm theForm = (TestForm) form;
String uname = theForm.getUname();
..............