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="验证码"/>