struts2标签:struts2中head标签的使用

  在struts2中jsp文件使用<s:head/>可以得到些加入js效果

  login.jsp

<%@ page language="java" contentType="text/html; char=GBK"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>登录页面</title>
<s:head/>
</head>
<body>
<s:form action="Login.action" method="post">
  <s:textfield name="name" label="用户名"/>
  <s:password name="password" label="密码"/>
  <s:submit value="登录"/>
 
</s:form>
</body>
</html>


  1、输入:http://localhost:8080/strutsdemo/login.jsp

46</div></td>
47</tr>
48
49 
50</table></form>
51
52
53
54
55</body>
56</html>

Tags:  struts2标签库 struts2分页标签 struts2自定义标签 struts2标签

延伸阅读

最新评论

发表评论