jQuery("#inputCount").get(0).length  ;  // 셀렉트박스 길이

jQuery("#inputCount").get(0).options[0].selected = true; //첫번째 항목이 선택되게

 

 //옵션추가

for(var i=0; i<=count; i++){
   jQuery("#inputCount").get(0).options[i] = new Option(i + "개", i);  }

 

//옵션 초기화

for (var i = jQuery("#"+objName).get(0).length-1; i>=1; i--)
{
     jQuery("#"+objName).get(0).options[i] = null;
}

 

document.getElementById("inputCount").reInitializeSelectBox(102);    //이건 selectbox에 css가 안먹어서 js로 억지로 만들어 끼워 넣었는데 가로 size가 잘 안먹어서 다시 생성해주는 스크립트로 넣었음. 102는 넓이

 

 

<select id="inputCount" name="inputCount">
        <option value="">선택수량</option>
        <option value="1">1개</option>
</select>

branches , trunk , tag


1. branches 개발중, 개발 test 완료

2. trunk 개발 완료 된 소스 배포

3. tag 소스 배포 되고 아무이상 없다면 Release - version 1.0 


maven - jar file auto setting 

www.apache.org // maven.apache.org // search.maven.org


<modelVersion> - 현재 사용하고 있는 maven version (default) 및 위 항목들은 Unique한 값.


<properties> - maven :: 자주 쓰는 항목 변수화 하여 지정

 <project.build.sourceEncoding>UTF-8

 <spring-core-version>2.5.6</spring-core-version>

 <spring-core-version>3.1.1 Release</spring-core-version>


pom.xml > right mouse click > Run As > Run Configurations

(Base directory :: 현재 쓰고 있는 maven 프로젝트 default 설정) > Goal :: clean compile 설정(jar 자동 삭제 수정)

다음 mvn clean compile 할 때는, > Run Configurations 를 >Maven test 해주자.


 <spring-batch-version>2.1.1.RELEASE 

 :: spring core와 spring batch 는 다른 프레임웤


<repository> - jar를 만들기위한 그 jar 서버 url정보값 setting

<dependencies> - 해당 jar를 쓰기 위한 jar 고유 groupId, artifactId, version 정보(data)값 setting


systemPath 설정

<dependency>

<groupId>oracle</groupId>

<artifactId>ojdbc</artifactId>

<version>10.2.0.4</version>

<scope>system</scope>

<systemPath>${project.basedir}/lib/ojdbc-10.2.0.4.jar</systemPath>            

</dependency> 


proflies : 개발환경, 서비스환경 나눠서 환경 설정.

pom.xml > right mouse click > Run As > Run Configurations

> Profiles : local & release

<profiles>

        <profile>

            <id>local</id>

            <properties>

                <env>local</env> 

            </properties>            

        </profile>

        <profile>

            <id>release</id>

            <properties>

                <env>release</env>

            </properties>

        </profile>    

 </profiles>


Web HTTP Server - Apache, WebtoB, Nginx, iplanetweb

Was Server - jeus, weblogic, tomcat


Apache server 2.2

http://httpd.apache.org/

download - from a mirror

Apache HTTP Server 2.2.22 localhost:80/

Win32 Binary without crypto (no mod_ssl) (MSI Installer)


Apache HTTP 서버 설정

NameVirtualHost *:80

<VirtualHost *:80>


C:\dev\conf\extra\ httpd-vhosts.conf ::

NameVirtualHost *:80

<VirtualHost *:80>

 ServerName struts2.apache.org

 DocumentRoot D:\workspace\struts2-project\webapps //현재 workspace

 <Directory D:\workspace\struts2-project\webapps>

  Order Allow,Deny // 선 Allow, 후 Deny

  Deny from 127.0 192.168 10.2 // 후 127.0 으로 시작하는 ip, 192.168, 10.2 다 막음

  Allow from all // 먼저 다 오픈

 </Directory>

</VirtualHost>


C:\dev\conf\ httpd.conf ::

# Virtual hosts

Include conf/extra/httpd-vhosts.conf 주석 풀고 save


C:\dev\실습환경\hosts\ hosts file ::

127.0.0.1       localhost

127.0.0.1       struts2.apache.org


C:\dev\conf\ httpd.conf :: 모두 주석처리.

#<Directory />

#   Options FollowSymLinks

#   AllowOverride None

#   Order deny,allow

#   Deny from all

#</Directory>


C:\dev\conf\ httpd.conf

#Listen 12.34.56.78:80 - ip기반 사용시 주석 품

Listen 80


Test Configuration :: Apach error 있으면 찾아줌.



http://tomcat.apache.org/ 

Tomcat Connectors

Tomcat Connectors JK 1.2

Binary Releases

tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x.zip

C:\dev\tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x\ mod_jk.so 파일 카피 해서

C:\dev\modules\ mod_jk.so 이 경로로 카피함


C:\dev\conf\ httpd.conf :: 주석 풀고 jk_module 수정

LoadModule jk_module modules/mod_jk.so 


C:\dev\conf\ :: workers.properties 새로 파일 만듬

내용 ::

worker.list = struts2-project


worker.struts2-project.port=8009

worker.struts2-project.host=localhost

worker.struts2-project.type=ajp13


C:\dev\conf\ httpd.conf :: 밑의 문장 추가

JkWorkersFile conf/workers.properties


C:\dev\conf\extra\ httpd-vhosts.conf :: 밑의 문장 추가

JkMount /*.jsp struts2-project

JkMount /*.do struts2-project


'Server > Web Application' 카테고리의 다른 글

linux name  (0) 2012.07.31
vi 명령어, vi 단축키, vi(Visual Editer), vim  (0) 2012.07.27
CentOs 6.2 Tomcat 설치  (0) 2012.07.20
CentOs 6.2 Apache(httpd) 설치  (0) 2012.07.20
CentOs 6.2 JDK 설치  (0) 2012.07.20

/*

DOM 스크립트

*/


document.createElement("p")

document.createTextNode("")


node.cloneNode(false)

node.nodeType()


node.nodeValue()

document.getElementById("description").firstChild.nodeValue

attribute node="description" 인 요소노드의 firstChild 는 textNode 이다. 



document.getElementById(element node)


document.getElementsByTagName(element node)

<> document.createTextNode("Hello world")


document.body.appendChild(para)

document.removeChild(message)

element.insertBefore(newNode, targetNode)

element.replaceChild(newChild, oldChild)


element.setAttribute(attributeName, attributeValue) - element 요소만 가능

element.setAttribute(attribute, Value )

node.hasChildNodes()

node.childNodes.length


document.childNodes[0].nodeName == "HTML"

node.lastChild == node.childNodes[element.childNodes.length - 1]




document.body.appendChild(placeholder);

document.body.appendChild(description);


var gallery = document.getElementById("imagegallery");

gallery.parentNode.insertBefore(placehorder, gallery);


addLoadEvent();

addLoadEvent();


insertAfter() {}



/*

HTML DOM

*/


document.getElementByTagName("title").firstChild.nodeValue;


var w = window.open();

w.document.open();

w.document.write

w.document.close();

//write() 글이 쓰여진 새창을 띄운후 close한다


document.getElementById("w3c").taget = "_blank";

// 새창 띄우기.

// target


<area id="venus" shape="circle"

coords="124,58,8"

alt="Venus"

href="venus.htm?id=venus" />


document.getElementById("venus").host == "www.w3scholls.com"

getElementById("venus").hostname

getElementById("venus").pathName == "/jsref/venus.html"

getElementById("venus").search == "?id=venus"

getElementById("venus").shape == "circle"


document.getElementById("button1").form.id

document.getElementById("button1").parentNode.getAttribute("id")


<form id="frm1" accept-charset="ISO-8859-1">

document.getElementById("frm1").acceptCharset == "ISO-8859-1"


/*

document.getElementById("frm1").length


if(!document.getElementById) return false;

if(!document.getElementByTagName) return false;

if(!document.getElementByid("frm1")) return false;

var frm = document.getElementById("frm1");

var tagFrm = frm.getElementByTagName.childNodes;

for(var i=0; i<tagFrm.length; i++){

 if(!tagFrm[i]) return false;

 document.write( tagFrm[i] );

}

*/


<iframe id="myframe" src="/default.asp">

document.getElementById("myframe").align="right";

// 글 오른쪽에 iframe이 위치함


<form onmousedown="whichButton(event)">

if( event.button == 2) { alert("you clicked the right mouse button!"); }

else { alert("you clicked the left mouse button!"); }


+ Recent posts