html標簽 | structs標簽 | 功能 |
<html> | <html:html> | |
<base> | <html:base> | 生成當前網頁的url絕對路徑 |
<a href=""> | <html:link> | forward:指定全局轉發連接 |
href:指定完整url鏈接 | ||
page:指定相對于當前網頁的url | ||
<html:rewrite> | 用于輸出超鏈接中uri部分,即主機和端口號以后的內容 | |
<image src=""> | <html:image> | page:指定相對與當前頁面的uri |
<form> | <html:form> | name:指定actionform的名字 |
<input type="text"> | <html:text> | property:相當于name屬性 |
<imput type="submit"> | <html:cancel> | 用于取消請求,實現需要在action內編程 |
<html:submit> | 用于提交表單 | |
<input type="reset"> | <html:reset> | 用于表單清空 |
<input type="checkbox"> | <html:checkbox> | property:相當于name屬性 |
value:選項的值 | ||
<html:mutilbox> | property:相當于name屬性value:選項的值 | |
<imput type="radio"> | <html:radio> | property:相當于name屬性value:選項的值 |
<select> | <html:select> | size:在網頁上顯示的可選項目的個數 |
property:相當于name屬性 | ||
multipel是否多選 | ||
選項為:<html:option value>顯示文本</>選項 | ||
<option> | <html:option> | |
<html:options> | property:相當于value(實際值) | |
lableproperty:顯示值 | ||
collection選項集合 | ||
<html:optionCollection> | property:選項集合 | |
value:實際值 | ||
lable:顯示值 | ||
<input type="file"> | <html:file> | 文件上傳標簽需把 |
<html:from method="post" enctype="mutipart/form-data"> | ||
property:文件絕對路徑 | ||
<html:errors> | 輸出錯誤消息,錯誤消息來源于ActionMessages、ActionErrors | |
name:指定ActionMessages在request和session中的key | ||
property:指定消息屬性 | ||
bundle:指定資源文件 | ||
<html:message> | 與<html:errors>類似 |
Structs html標簽總結
只有注冊用戶登錄后才能發表評論。 | ||
![]() |
||
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
|
||
相關文章:
|
||