반응형
이번엔 JSP, Script 파일
굳이 Comment 를 따로 달도록 하진 않겠다.
reference Site를 보고 개념을 익히고, 각각에 밑줄그은 명령어를 중시해서 찾아보면된다.
역시나 DWR또한 JAVA API처럼 찾아서 해야된다.
참고 URL :
http://directwebremoting.org/dwr/javadoc/
http://directwebremoting.org/dwr/documentation/browser/util/setValue.html
http://stackoverflow.com/questions/6859768/specifiying-fileuploadmaxbytes-in-dwr-annotation-and-mvc-spring-framework
http://dwr.2114559.n2.nabble.com/Spring-MVC-amp-DWR3-and-reverse-ajax-on-tomcat6-config-td2650739.html
http://java-x.blogspot.com/2007/03/reverse-ajax-with-direct-web-remoting.html
http://j2eethrill.blogspot.com/2009/01/reverse-ajax-with-spring-and-dwr.html
http://javaora.tistory.com/search/dwr
http://ggwangs.egloos.com/2196455
http://www.butterdev.com/dwr/2008/02/dwr-20x-spring-2x-with-spring-mvc/
http://www.butterdev.com/category/dwr/
http://krams915.blogspot.com/2011/01/spring-mvc-3-and-dwr-3-integration.html
http://blog.naver.com/xxsicxx?Redirect=Log&logNo=90032683326 http://www.javajigi.net/pages/viewpage.action?pageId=2028
http://everlikemorning.tistory.com/40
http://blog.naver.com/amicas06?Redirect=Log&logNo=100092532954
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!--
* fileName : index.jsp
* createDate : 2011. 11. 20. 오후 2:03:43
* CreateUser : ahn
* Document : DWR TEST
*
*
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Login Page</title>
<%@ include file="/common/include/includeCss.jsp" %>
<%@ include file="/common/include/includeJavaScript.jsp" %>
<script type="text/javascript" src="/dwr/interface/hello.js"></script>
<script type="text/javascript" src="/dwr/interface/chat.js"></script>
<script type="text/javascript" src="/dwr/engine.js"></script>
<script type="text/javascript" src="/dwr/util.js"></script>
<script type="text/javascript">
hello.say("there!" ,
function(data){dwr.util.setValue("result",data);}
);
dwr.engine.setActiveReverseAjax(true);
function enterEvent(event){
if(event.keyCode == 13){
doNotify();
}else
return false;
}
function doNotify(){
var data = document.getElementById("write");
chat.notify(data.value);
data.value = "";
}
function notifyMsg(data){
//alert($H(data).toQueryString());
var id = document.getElementById("view");
var node = document.createElement("div");
id.appendChild(node);
var text = document.createTextNode(""+data.userName+":"+data.msg+"");
node.appendChild(text);
}
</script>
</head>
<body>
<div>
this is DWR test Page
<hr/>
<div id="result"></div>
</div>
<hr/>
<div>
<input type="text" id="write"onkeypress="enterEvent(event);"/>
<input type="button" value="전송" onclick="doNotify()"/>
<div id="view"></div>
</div>
</body>
</html> 굳이 Comment 를 따로 달도록 하진 않겠다.
reference Site를 보고 개념을 익히고, 각각에 밑줄그은 명령어를 중시해서 찾아보면된다.
역시나 DWR또한 JAVA API처럼 찾아서 해야된다.
참고 URL :
http://directwebremoting.org/dwr/javadoc/
http://directwebremoting.org/dwr/documentation/browser/util/setValue.html
http://stackoverflow.com/questions/6859768/specifiying-fileuploadmaxbytes-in-dwr-annotation-and-mvc-spring-framework
http://dwr.2114559.n2.nabble.com/Spring-MVC-amp-DWR3-and-reverse-ajax-on-tomcat6-config-td2650739.html
http://java-x.blogspot.com/2007/03/reverse-ajax-with-direct-web-remoting.html
http://j2eethrill.blogspot.com/2009/01/reverse-ajax-with-spring-and-dwr.html
http://javaora.tistory.com/search/dwr
http://ggwangs.egloos.com/2196455
http://www.butterdev.com/dwr/2008/02/dwr-20x-spring-2x-with-spring-mvc/
http://www.butterdev.com/category/dwr/
http://krams915.blogspot.com/2011/01/spring-mvc-3-and-dwr-3-integration.html
http://blog.naver.com/xxsicxx?Redirect=Log&logNo=90032683326 http://www.javajigi.net/pages/viewpage.action?pageId=2028
http://everlikemorning.tistory.com/40
http://blog.naver.com/amicas06?Redirect=Log&logNo=100092532954
반응형
'JAVA > comet' 카테고리의 다른 글
DWR reverse Ajax / Spring MVC -2 (0) | 2011.09.01 |
---|---|
DWR reverse Ajax / Spring MVC -1 (0) | 2011.09.01 |
dwr Spting 환경설정 (0) | 2011.08.31 |
Ajax real time (Reverse AJAX) (0) | 2011.08.30 |
수정요망 원하는 시간에 리로드 (0) | 2011.06.17 |