工作第四天日誌

velocity配置文件是Velocity.properties文件。


但是項目中沒有此文件。經過和別人研究終於找到關於velocity的一些文件。在strus.properties文件中:struts.velocity.contexts =com.yzy.rights.util.MyVelocityContext

找到MyVelocityContext.java文件,其中有system和RightsCategoryTool的字樣,但是還是不懂MyVelocityContext.java的函數的意義和內部實現機制。


怎麼可以在iframe中顯示src指定action返回的html頁面? 

<frameset rows="116,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="top.ac" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" />
</frameset>


驗證碼的一段html

<img id="validateCode" src="validateCode.ac" style="width:70px;height:27px;" />


οnsubmit=“return false”爲不執行提交;οnsubmit=“return true”或οnsubmit=“return ”都執行提交

<form action="adminLogin.ac" method="post" id="loginForm" οnsubmit="return check_input(this)">
其中check_input爲js函數,返回boolean值。


onMouseOver="this.focus();" 意思是當鼠標劃到上面(通常是一個輸入框)的時候,獲得輸入焦點。
onFocus="this.select();"意思是當獲得輸入焦點的時候,選擇全部內容。

<input type="text" tabindex="3"  name="yanzhengma" id="yanzhengma" οnfοcus="this.select();" class="rightyzm" placeholder="驗證碼"/>


發佈了20 篇原創文章 · 獲贊 3 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章