<link href="css/webcss.css" rel="stylesheet" type="text/css"> <meta http-equiv="pragma" content="no- cache"> <meta http-equiv="cache-control" content="no- cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http- equiv="description" content="This is my page"> </head>
<body> <center> <p> </p> <p> </p> <table width="300" border="0" cellpadding="0" cellspacing="0"> <html:form action="/addAdmin" focus="name" method="GET"> <tr align="center" valign="middle"> <td colspan="2" class="typt_normal">新增管理员</td> </tr> <tr> <td width="100" align="center" valign="middle" class="typt_normal">名称: </td> <td width="200" align="left"><html:text property="name" styleClass="text_s"/><html:errors property="addAdmin.err.name"/></td> </tr> <tr> <td width="100" align="center" valign="middle" class="typt_normal">密码: </td> <td width="200" align="left"><html:password property="password" styleClass="text_s"/></td> </tr> <tr> <td colspan="2" align="center" valign="middle"><html:submit value="提交" onclick="return check ();"/><html:reset value="重置"></html:reset></td> </tr> </html:form> </table> </center> </body>
</html:html>
其中可以看到如何在struts的标签中使用javascript的方法。
配置好myeclipse于tomcat的连接。在window->Preferences做如下设定:

在项目文件点右键->“myeclipse”->“Add and remove project deployment”,如下图:

好了,我们的配置工作基本结束了,在myeclipse上开启tomcat服务

现在打开浏览器,输入
上一篇:学习教程:Java Annotation 高级应用
下一篇:JSP中的page,request,session,application
|