0
조치 클래스를 처리 한 후 정적 URL에 쿼리 문자열로 추가해야하는 동적 속성이 "https://www.google.co.in/?zipcode="+zipcode"
이 시점까지 완료되었습니다. 그런 다음 요청이있는 URL로 JSP로 제어를 전달했습니다. 이제 JSP에서 특정 새 창 속성을 사용하여이 URL을 새 창에서 열려고합니다.URL을 새 창에서 새 창으로 열기 속성을 사용하여
이 내 JSP에서 노력하고있다 :
<%
String redirectURL = (String)request.getAttribute("url2redirect");
response.sendRedirect(%><javascript:openNewWindow()><%
%>
<script>
function openNewWindow() {
var screenWidth = screen.width;
var screenHeight = screen.height;
var contactUsWidth = screenWidth*90/100;
var contactUsHeight = screenHeight*90/100;
window.open('<%=redirectURL%>','appointment','scrollbars,menubar=no,width='+contactUsWidth+',height='+contactUsHeight+',resizable=no,toolbar=no,location=no,status=no,copyhistory=yes,left=0,top=0,screenX=0,screenY=0');
}
</script><%);%>
구문 오류를주는 작동하지 않는 그것 ....이 올바른 방법인가? 이 URL을 다른 창 속성으로 새 창에서 열려면 어떻게해야합니까?