i have my index.jsp :
<%@ page pageEncoding="UTF-8"%>
<html>
<head>
<meta charset="UTF-8"/>
<title>Hello</title>
</head>
<body>
Hello !
<input type="hidden" name="ip" value="" id="ip">
<script>
var ip = document.getElementById("ip");
ip.value = userip;
</script>
</body>
</html>
I have another view.jsp which one take an argument like that :
http://localhost:8200/view/view.jsp?ip=IP_VALUE
Then when i open this link and replace IP_VALUE by anything, this value is automatically added to my database.
But now i'm trying to call hiddenly this jsp page, i mean i want that when the user open my page, my javascript variable "ip" is past to my view.jsp like :
http://localhost:8200/view/view.jsp?ip= "ip"
But i want that the user don't see that, so i don't want any redirection or form, just an AJAX hidden call of my jsp.
view.jsp is on the same folder than my index.jsp
How can i do that hiddenly ?