I have a javascript function to retrieve the users workstation like the one here. How can I read the client's machine/computer name from the browser?
My question is, how can I pass the computername (result from the function) to the servlets doGet() method?
Currently my code (snippet) that calls the servlet is as follows:
<html>
<head> .... <script> load my javascript file here </script></head>
<%
if(session.getAttribute("Login") == null){
//I want to pass the computer name here
response.sendRedirect("../LOGME");
} else {
//draw page body
} %>
</html>