<script type="text/javascript">

$(document).ready(

function() {

var latlng = ${routeEnd.beacon_gps};

var myOptions = {

zoom : 17,

center : latlng,

mapTypeId : google.maps.MapTypeId.ROADMAP

}

var map = new google.maps.Map(document

.getElementById("map"), myOptions);


<c:forEach var="rl" items="${routelist }">

var latlngRoute = ${rl.beacon_gps};

var marker = new google.maps.Marker({

position : latlngRoute,

map : map,

title : '${rl.location_outTime}'

});

</c:forEach>

var flightPlanCoordinates = [

<c:forEach var="rl3" items="${routelist }">

${rl3.beacon_gps },

</c:forEach>

                           ];

   var flightPath = new google.maps.Polyline({

                  path: flightPlanCoordinates,

                  geodesic: true,

                  strokeColor: '#FF0000',

                  strokeOpacity: 1.0,

                  strokeWeight: 2

                  });

   

flightPath.setMap(map);

});



</script>

'Computer > JSP Servlet JavaScript' 카테고리의 다른 글

콤보박스(select) Readonly  (0) 2016.03.21
JavaScript GoogleMapAPI 사용하기 예제  (0) 2016.02.16
Javascript Form submit div 지정  (0) 2015.12.07
JSP 에러페이지  (0) 2015.01.21
JSP 액션태그 forward 예제  (0) 2015.01.20
$('#create').submit(function() { // catch the form's submit event
    $.ajax({ // create an AJAX call...
        data: $(this).serialize(), // get the form data
        type: $(this).attr('method'), // GET or POST
        url: $(this).attr('action'), // the file to call
        success: function(response) { // on success..
            $('#created').html(response); // update the DIV
        }
    });
    return false; // cancel original event to prevent form submitting
});
<form id=create method=POST action=create.php>
<input type=text name=url>
<input type="submit" value="Create" /> 

<div id=created></div>


eGovFrame 01.실행환경_실습교제(공통기반)


이 문제를 진행하다보면 XMLEmpDAO의 소스에서 Collections부분의 에러를 확인할 수 있다. 

Bound mismatch : the generic method sort(list <t> ) of type collections is not applicable....



이는 콜렉션프레임워크에서 정렬을 할 때 각 원소간 크기를 비교해야하는데 그 기준을 정의하지 않아서 발생하는에러이다. 

이 에러를 해결하기 위해선 객체를 정의할 때 Comparable을 implement 한 뒤 정의 하면 된다.






안드로이드 3.0이상부터 메인스레드에서 네트워크관련 작업을 할 수 없지만 임의적으로 해결하는 방법이다.

//Permission StrictMode
if(android.os.Build.VERSION.SDK_INT > 9){

StrictMode.ThreadPolicy policy = 
new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
}


<![CDATA[

attendance_date >= to_date(#{start_month}, 'YYYYMM') and attendance_date < to_date(#{finish_month}, 'YYYYMM')

]]>

서버의 버퍼 입출력부분에 UTF-8 속성을 사용한다.


BufferedReader in = new BufferedReader(

new InputStreamReader(client.getInputStream(), "UTF-8"));

String str = in.readLine();

System.out.println("Server Received: '" + str + "'");


PrintWriter out = new PrintWriter(new BufferedWriter(

new OutputStreamWriter(client.getOutputStream(),"UTF-8")),

true);

'Computer > Android' 카테고리의 다른 글

Android StrictMode 에러  (0) 2015.08.31
안드로이드 배경이미지  (0) 2014.08.20
안드로이드 버튼 클릭 리스너  (0) 2014.08.12
안드로이드 스피너 예제  (0) 2014.08.08
안드로이드 액티비티간 데이터 전송  (0) 2014.08.08

<1> 오라클 계정 생성

  1. SQL Plus에 접속

    C:>sqlplus system/비밀번호 (또는 C:>sqlplus "/as sysdba")
    일반계정으로 연결되어 있다면 SQL>conn /as sysdba

  2. 계정 생성 : create user 유저네임 identified by 패스워드;
  3. 접속권한부여 : grant resource, connect to 유저네임; 
                         resource, connect 는 일반적인것을 다 사용 할 수 있음. DDL, DML 사용 가능 

    dba 권한 : grant DBA to 유저네임

  4. 작업 tablesapce 지정 : alter user 유저네임 default tablespace users;
  5. 임시 tablespace 지정 : alter user 유저네임 temporary tablespace temp;

 

<2> 오라클 계정 삭제

  1. SQL Plus에 접속
    C:>sqlplus system/비밀번호
  2. SQL>drop user 유저네임 cascade;   사용자 삭제

    cascade 를 명시하면 유저네임과 관련된 모든 데이터베이스 스키마가 데이터 사전으로부터 삭제되고 모든 스키마 객체도 물리적으로 삭제 됨.



참고 : http://kjo1023.tistory.com/entry/%EC%98%A4%EB%9D%BC%ED%81%B4-%EA%B3%84%EC%A0%95-%EC%83%9D%EC%84%B1-%EB%B0%8F-%EC%82%AD%EC%A0%9C







+ Recent posts