`
文章列表
碰到一个 ,问题 , 一个方法再一次登陆的过程中只能调用一次 ,否则  就抛异常 。    彪哥帮我搞定这个问题 ...   LoginInfo 对象里面在  Session 里面更新。         /** * 更新session中的登录信息 * * @param loginInfo * LoginResultInfo */ public static void updateLoginSession(LoginResultInfo loginInfo) { ...
$("tr>td").css("text-align","left"); $(function(){ $("#mytable > tbody").find("tr").each(function(){        $(this).find("td:first-child").css("text-align","right");        $(this).find("td:eq(1)&quo ...
严重: Servlet.service() for servlet jsp threw exception tag 'select', field 'list', id 'entInterNumber', name 'entInterNumber': The requested list key 'innerNumbers' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location] at ...
  http://demojava.iteye.com/blog/858349   // 验证输入的日期     http://jeemiss.iteye.com/blog/507185    验证短日期(2007-06-05) function strDateTime(str) {    var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);     if(r==null)return false;          var d= new Date(r[1], r[3]-1, r[4]);          re ...
一 , 一个是无法登陆 ,报的是 Action 配置的错误, 但是他都没有跳入到action里面去  , 反复检查了 struts.xml   也没找到原因 。            方法 :  回想最近的改动 , 分析可能导致错误的原因 ,简单反复是把 改动文件copy出来 , 恢复到正确的版本 ,再比对两者的区别 ,就能找到哪里错了。        原因是 改动了 调用的Action的 父类 , 父类的属性里去 Util l类得 static 方法中获取信息 , 方法涉及到访问 Session 但是  导致出错 ,  类似的错误就是在  AJAX 的调用失败 , 也是在进入Ac ...
    Date currentTime = new Date(); DateFormat dataFormat = new SimpleDateFormat("yyyyMMddHHmmss");//设置显示格式 String nowTime = dataFormat.format(currentTime);//用DateFormat的format()方法在dt中获取并以yyyy/MM/dd HH:mm:ss格式显示            
设置<input type="text">的默认值最基本的就是用value设置默认值,例如<input type="text" value="默认值">。但是如果想让默认值在鼠标点击的时候消失,那么就要用js去实现动态的效果,例如<input name="textfield" type="text" value="默认值" onfocus="if (value =='默认值){value =''}" onblur="i ...
Hi All, We need to follow below 3 steps to enable HTTPS support in User Portal(This is same for any java based web application). 1) Changes to be done in web.xml Add below tag in web.xml of user_portal. This automatically redirects all requests to https(even though the user types ...
原来的select.js不用动,请在main.css文件的末尾加入下面一句即可:   /*add by ruanzhen, fix the bug of floating*/ div.plr20{position: relative;}
shift  + table   缩进快捷键 ,              很好用以前还不知道 !!      
    <script src="web/alarmclock/js/alarmClock.js" type="text/javascript"/>   有错误 ,页面不显示    <script src="web/alarmclock/js/alarmClock.js" type="text/javascript"></script>   正常 
  if(msg=='操作成功') { $("#sectable").find("td:has(input)").each(function() { if($(this).find("input").attr("checked ...
 validateJarFile(D:\Project Code\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\user_portal\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class     ------------------------------------------ ...
      <a href="#" id="queryOneNumber.action?isFollowMe='followMe' " > <span> 妹纸,妹纸 跟我走 </span> </a>   这个是怎么实现的 ,我很好奇的说
需要你去看你的struts配置文件。假如action的namespace='/company';action的名字为xx则应该写为: <a href="/company/xx.action">链接<a> 如果需要传参数a,且a的值为1: <a href="/company/xx.action?a=1">链接<a> 如果传参个数大于1,则将参数之间用&连接: <a href="/company/xx.action?a=1&b=1">链接<a ...
Global site tag (gtag.js) - Google Analytics