Js에서 데이터를 jsp로 넘기려는데 어떻게 해야할까요?

특정위치에서 제일가까운 치킨집을 찾아주려고 합니다.
DB에 치킨집의 각종정보(상호명, 지번주소, 경도ㆍ위도)가 있는데

카카오맵에서 검색을 하면 마커가 뜨고, 마커를 클릭하면 인포윈도우에 상호명, 지번주소가 뜨게는 하였습니다.
JSP에서 위도경도값을 매개변수로 갖는, Java메소드로 제일 가까운 치킨집을 DB에서 찾아(피타고라스 방정식) return을 해줍니다.
처음에 아무것도 모르고 코드를 아래와 같이 짯었습니다.
그런데 JS에서 JSP로 변수전달을 못한다는것을 깨닳아, 어떻게 해야할지 일주일째 고민입니다…

function click_displayInfowindow(marker, title, places) {
    itemStr = '<div class="info">' +
              '<h5>' + places.place_name + '</h5>';
    if (places.road_address_name) {
        itemStr += '<span>' + places.road_address_name + '</span>' +
                   '<span class="jibun gray">' +  places.address_name  + '</span>';
    } else {
        itemStr += '<span>' +  places.address_name  + '</span>'; 
    }
    itemStr += '<span class="tel">' + places.phone  + '</span>' +
               '</div>';
    itemStr += '<div id="search_bar" style="width:100px; height:100px;">' + 
               '<input type="button" id="run_button" onclick="run_button()" value="가까운 충전소 찾기">' +
               '<button onclick="action=run_button(places.address_name); submit();"> Find </button>' +
               '</div>';
    //var content = '<div style="padding:5px;z-index:1;">' + title + '</div>';
    var content = itemStr;
    
    click_infowindow.setContent(content);
    click_infowindow.open(map, marker);
}


function run_button(search_address){
    <%
            Find find = new Find();
            find.main(search_address);
    %>
}

서버에서 places.address_name을 사용하여 가까운 치킨집을 찾은 리스트를 리턴해주는 API 생성하여
js에서 동적 호출하는 방법이 있을 것 같습니다.

해당 질문은 지도 API 문의 관련 게시글의 성향과는 다르기 때문에
자세한 설명을 드리기 어려운 점 양해 부탁드립니다.

답글 감사합니다.ㅠㅠ
결국 해결했는데, iframe으로 새로운 jsp파일을 로드하고, getParameter로 해결을 하였습니다.:+1::+1: