Is there a way to do:
java.net.InetAddress.getLocalHost().getHostName()
without using JSP Scriptlets? Looking for a more conventional solution, probably using JSTL capabilities to achieve this.
Take note that ${pageContext.request.*}
jstl function doesn't give me the output I want. I want the computer host name.
I tried a JavaScript but it didn't work, no idea as of why:
<script>document.write(java.net.InetAddress.getLocalHost().getHostName())</script>