struts2的tags

作者在 2011-12-01 17:04:17 发布以下内容
1.<%@ taglib  prefix="s" uri="/struts-tags"%>
2.<s:form  name="" action=""  namespace="">
     <s:textfield name=""  label="name"/>
     <s:password name=""  label="pass"/>
     <s:textarea  name=""  label="advice"/>
     <s:submit  name=""    label="submit"/>
   </s:form>
3.<s:action name="showStudent"   namespace=""/>
   <s:iterator name="" value="%{showStudent}"  id="sta">
   <li  style="list-stle:none"><s:property  value="name"/><s:a href="<s:property value='www.hnguotong.com'"><s:porperty value="num"/></s:a></li>
   </s:iterator>
4.ongl
page
#pageScope.name
request
#requestScope.name
session
#sessionScope.name
application
#appliactionScope.name
5.xml
servelt.java
init()
service()
doPost()
doGet()
destory()
<servlet>
  <servlet-name></servlet-name>
  <servlet-class></servlet-class>
</servlet>
<url-mapping>
  <serlvet-name></servlet-name>
  <url-pattern></url-pattern>
</url-mapping>
 
jsp | 阅读 1246 次
文章评论,共0条
游客请输入验证码
浏览59724次
最新评论