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
Post a Comment