jsp tags - How to get the domain name in JSTL? -


in jsp, want current domain name. how can using jstl ?

eg., if user browsing through site 'www.somesite.com', want display domain 'www.somesite.com' in jsp. how ?

can request object ?

or, there other way ?

<c:out value="${pagecontext.request.servername}" /> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -