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()
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 2539 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 23, 2018 07:47:15.