<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.net.*"%>
<%
String ip=InetAddress.getLocalHost().getHostAddress();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function init()
{
var cip = '<%=ip%>';
document.getElementById("white").innerHTML="this server ip is :" + cip;
}
</script>
</head>
<body id="login" οnlοad="init()">
<div>
<p id="white">this server ip is :</p>
</div>
<%@page import="java.net.*"%>
<%
String ip=InetAddress.getLocalHost().getHostAddress();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function init()
{
var cip = '<%=ip%>';
document.getElementById("white").innerHTML="this server ip is :" + cip;
}
</script>
</head>
<body id="login" οnlοad="init()">
<div>
<p id="white">this server ip is :</p>
</div>
</body>