工作第四天日志

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值