Forums Register Login
hot to get the server name using jsp

i wanted to get the file path along with the server name using jsp
can i get he server name using jsp
how can this be done

waiting for your reply

I am not sure if you really need the server name but this is the way you get it. Use request.getServerName().

If you need the context path to be appended to your file, then usen request.getContextPath()

This thread has been viewed 2905 times.

All times above are in ranch (not your local) time.
The current ranch time is
Oct 15, 2018 20:30:13.