Hi,
I have to call a window.open() JS function when a particular condition in Java code is true. This java code is present in a JSP Page.
I am attaching a code snippet here.
<%@include file="../general/path.jsp"%>
<%
String ip = request.getHeader("X-Forwarded-For");
if(ip == null)
ip = request.getRemoteAddr();
if("3.44.100.106".equals(ip)){
-- Need to open a pop up window.
}
%>
<html>
<head>
<title>Press Express - Create Contact List</title>
Could anyone pls tell me how to open a pop-up window (another jsp page) in this scenario ?
Thanks !