상세 컨텐츠

본문 제목

JavaScript 에서 spring property 파일 사용하기

소프트웨어/spring

by 야솔아빠 2018. 1. 18. 13:49

본문

반응형

var goFormSubmitPcmall = function(token) {

if (token != undefined && token != null && token != '') {

$("#access_token").val(token);

}

$("#formT").attr("method", "post");

/* $("#formT").attr("action", "https://xxx.yyyy.com/singlesignon"); //    */



<c:set var="MALL_URL">

    <spring:eval expression="@property['MALL.URL.SSO']"/>

</c:set>

var mall_url = '<c:out value="${MALL_URL}" />';


$("#formT").attr("action", mall_url); // 운영 


$("#formT").submit();

}

[jsp 에서 javascript 일부분]



<!-- 출처: http://logtree.tistory.com/62 [LogTree] -->

<util:properties id="property" location="classpath:/configuration.properties"></util:properties>

[dispatcher-servlet.xml 의 일부분]


I hope to help for you...



반응형

관련글 더보기

댓글 영역