[img src="foo.gif" width="" height=""]
와 같은 html tag 를 IE 에서는 width 0 으로 해석해서 그림이 보이지 않는다.
FF 에서는 이미지가 잘 나타난다.

//web server에서 request 에 설정 후 int 로 받으려면

// server 에서
 Integer myAnswerCnt = 0;
  request.setAttribute("myAnswerCnt", myAnswerCnt);
 
// jsp 에서
        int myAnswerCnt = (Integer)request.getAttribute("myAnswerCnt"); // 내가 답변한 갯수 {0|1}

------------------------------------------------------

http://mindprod.com/jgloss/intvsinteger.html


// to int i from Integer ii
int i = ii.intValue();

// to Integer ii from int i
Integer ii = new Integer( i );


* 아래도 참고

http://stackoverflow.com/questions/20877086/confusion-in-method-integer-valueofstring



<%@page import= "java.io.*, java.util.*, java.text.* " %>
<%
Date frDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2007-05-01 15:37:01");
Date toDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2007-05-01 16:27:01");
long diffMil = toDate.getTime() - frDate.getTime();
long diffSec = diffMil/1000;
long diffHour = diffSec/3600;
long  Min = (diffSec%3600) / 60;

                out.println ("diffMil==>" +  diffMil + "<br>");
                out.println ("diffSec==>" +  diffSec + "<br>");
                out.println ("diffHour==>" +  diffHour + "<br>");
                out.println ("Min==>" +  Min + "<br>");

String ret = diffHour + ":" + Min + " 남았습니다";
                out.println ("ret==>" +  ret + "<br>");

%>
~


원격 오라클 DB 에 접속이 무척 느렸다.
클라이언트 장비 /etc/hosts 파일에 클라이언트 호스트 이름을 등록해 주었더니 잘 된다
왠 조화일까?

http://www.javanuri.com/devforum/boardView.jsp?&menuId=10&Id=245115

JSON 에서는 특수문자를 인식 못한다. NL(NewLine), CR(CarridgeReturn) 값 등을 빼야 한다.

java 에서 정수 비교

java 2007. 4. 18. 19:48
Integer 형을 쓰면 == 로 비교하지 못한다. (객체를 비교하게 된다)
int 형을 쓰면 == 로 값을 바로 비교할 수 있다.

$A is not defined
return __method.apply(object, args.concat($A(arguments))

위와 같은 에러가 날때가 있다
(firebug 에서 prototype.js 를 쓸 때)

아래 처럼 패치하면 된다
     52 Function.prototype.bindAsEventListener = function(object) {
     53   var __method = this;
     54   return function(event) {
     55     if(typeof($A) == 'function'){ // <-- Added Firefox Fix
     56       return __method.call(object, event || window.event);
     57     }
     58   }
     59 }

출전은
http://www.skybyte.net/articles/prototype.js/


createElement

카테고리 없음 2007. 4. 17. 00:38
When you create an element you must append it to something inside the HTML document to give it scope (visibility). // this code does NOT work


newdiv = document.createElement("div"); // set div attributes newdiv.className = "x"; newdiv.id = "mine"; ... mydiv = document.getElementById("mine"); // does not find it

////////////////////////////

//this code DOES work

newdiv = document.createElement("div"); // set div attributes newdiv.className = "x"; newdiv.id = "mine";
document.body.appendChild(newdiv); // or some other node ... mydiv = document.getElementById("mine"); // finds it

http://www.zytrax.com/tech/dom/createelement.html)

table 안에서는 <div id="qlist_today" style="display:block">
와 같은 코드가 안되는 듯...
table 밖으로 감싸니까 잘된다.