We are keeping our some static contents on webserver (IHS). and in my java/action file if I want that path what should I do?
I want to know the webserver path.
I tried with contextpath it is giving me appl.server.
If I understand the question correctly, this file is not within the web application's context. It's being served by the web server which sits between the application server and the network. Presumably the two servers are on the same machine, which is why sreedhar thinks this question should have an answer. If they were on different machines, then clearly it wouldn't have an answer, and that suggests to me that there's nothing in the Servlet API which will produce the path.
If it were me I would go back and look for a solution to the unstated problem which didn't require knowing that path. Or I would hard-code the path as an application parameter.