Hi,
Usually hostname will be node name for websphere in a clustered environment.You can use the following code(
jsp code) to get the hostname in ur java application.This is for solaris environment.
<%@ page import="java.io.*"%>
<%
String command = "hostname";
Process p = Runtime.getRuntime().exec(command);
String s =null;
DataInputStream in = new DataInputStream(p.getInputStream());
while ((s = in.readLine()) != null) {
out.println("Hostname is: " + s);
}
%>