목록딸기 이야기 (346)
특별한딸기이야기
http://www.adobe.com/2006/mxml" layout="absolute"> private function onMouseDown(event : MouseEvent) : void { txtDrag.startDrag(); } private function onMouseUp(event : MouseEvent) : void { txtDrag.stopDrag(); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(tlistFruits.selectedIndex) + "\n"; msg += "selectedItem.code - " + String(tlistFruits.selectedItem.code) + "\n"; msg += "selectedItem.label - " + String(tlistFruits.selectedItem.label) + "\n"; Alert.sh..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(cmbFruits.selectedIndex) + "\n"; msg += "selectedItem.code - " + String(cmbFruits.selectedItem.code) + "\n"; msg += "selectedItem.label - " + String(cmbFruits.selectedItem.label) + "\n"; Alert.show(msg)..
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function onChange() : void { var msg : String; msg = "selectedIndex - " + String(lstFruits.selectedIndex) + "\n"; msg += "selectedItem.Code - " + String(lstFruits.selectedItem.code) + "\n"; msg += "selectedItem.Label - " + String(lstFruits.selectedItem.label); Alert.show(msg); ..
http://www.adobe.com/2006/mxml" layout="absolute"> 바인딩 전 private function onChange() : void { lblMsg.text = txtInput.text; } ]]> -->
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { lblChoose.text = String(nsFigure.value); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { lblColor.setStyle("color", cpkColor.selectedColor); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChange() : void { txtDate.text = String(dcDate.selectedDate.fullYear) + "/" + String(dcDate.selectedDate.month + 1) + "/" + String(dcDate.selectedDate.date); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function onChnage() : void { //txtDate.text = dcDate.selectedDate.toString(); txtDate.text = String(dcDate.selectedDate.fullYear) + "/" + String(dcDate.selectedDate.month + 1) + "/" + String(dcDate.selectedDate.date); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function keyboardEvent(event : KeyboardEvent) : void { lblMsg.text = event.type + " code = " + String(event.keyCode); } ]]>
100) { i = 0; } prgClick.setProgress(i, 100); txtValue.text = String(i); } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> private function resize() : void { button.width = sliderH.value; button.height = sliderV.value; } ]]>
실수에서는 반올림 오류가 발생할 가능성이 있다. 그 가능성을 제거하기 위해서는 자신이 필요한 부분의 소수점만 가지고 있는 것이 좋다. Math.round()는 반올림 함수이다. 반올림 함수전에 자신이 필요한 자리수 만큼 소수점을 옮겨준다. 반올림을 한다. 다시 소수점을 원래 상태로 옮겨준다. 3.141592 314.1592 3.14
http://www.adobe.com/2006/mxml" layout="absolute">
http://www.adobe.com/2006/mxml" layout="absolute">
구글]]>
@Embed('/Image/download[4].jpg')
http://www.adobe.com/2006/mxml" layout="absolute"> private function textareaChange() : void { textareaStatus.text = "입력중 : " + textarea.length; } ]]> editable="true" enabled="true"/>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function checkAlert() : void { if(check.selected == true) { Alert.show("체크 박스를 선택하셨습니다."); } } ]]>
http://www.adobe.com/2006/mxml" layout="absolute"> import mx.controls.Alert; private function select() : void { // radio button select if(radioFruitApple.selected == true) { Alert.show("사과를 선택하셨습니다."); } if(radioFruitPear.selected == true) { Alert.show("배를 선택하셨습니다."); } if(radioFruitBanana.selected == true) { Alert.show("바나나를 선택하셨습니다.");..
보호되어 있는 글입니다.
localStyleTypeSelectorExample Button { fontSize:15; color:#9933ff } localStyleClassSelectorExample .myFontStyle { fontSize : 15; color : #9933ff; }
http://blog.naver.com/suvisor/40038589102
최종적으로 문제를 해결한 utf8 과 MySQL JDBC Driver 5.0 에서의 DB URL은 jdbc:mysql://localhost:3306/subby_test?useUnicode=true&characterEncoding=UTF8&jdbcCompliantTruncation=false&useOldUTF8Behavior=true 한글때문에 열심히 삽질... 퍼온 곳 주소는... http://www.yunsobi.com/blog/187
DBCP에 관한 정보 설정 server.xml ... ... ... ... ... web.xml 디비설명 server.xml의 태그의 name과 일치 server.xml의 태그의 type과 일치 server.xml의 태그의 auth과 일치 jsp page ... try { Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup("java:comp/env"); DataSource ds = (DataSource)envCtx.lookup("jdbc/db명); Connection conn = ds.getConnection(); } ...
오늘 DB접근 하는데 있어서 한글 입력이 되지 않아서 고생했다. http://histari.egloos.com/1350864 위의 자료를 참소로 UTF-8로 바꾸고 실행하였더니 한글을 먹더라....
실습준비
sqlMap-test.xml insert into account(id, name, password, join, address, city, state, country, postcode, version) values (?, ?, ?, ?, ?, ?, ?, ?, ?) main class file Information info = new Information(); info.setId("special0strawberry"); ...//생략해도 알것이라 생각됨 sqlMapClient.insert("insertInline", info); //딱히 별 표시 없어도 알듯...
sqlMap-test.xml insert into account(id, name, password, join, address, city, state, country, postcode, version) values (#id:NUMBER#, #name:VARCHAR#, #password:VARCHAR#, #join:TIMESTAMP#, #address:VARCHAR#, #city:VARCHAR#, #state:VARCHAR#, #country:VARCHAR#, #postcode:VARCHAR#, #version:NUMBER#) main class file Information info = new Information(); info.setId("special0strawberry"); ...//생략해도 알것이라..
밑의 sqlMap-test.xml 파일에는 select id, username, password, firstname, lastname, address, city, state, country from member where id = #value# select id, username, password, firstname, lastname, address, city, state, country from member like '%$value$%' 메인 클래스 에서는 Member member = (Member)sqlMap.queryForObject("getIdValue", 1); // 그럼 1이라는 값이 #value#에 들어가서 결과를 리턴한다. List memberList = sqlMap.queryForList..