[Logo]
Forums Register Login
hot to get the server name using jsp
hi

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



regards
santosh
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 2435 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 23, 2018 11:03:44.