Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to get server name path in livesite
jateen
i want know how find server name with RequestContext in livesite.
exampe:
http://server
name/+ project name
Find more posts tagged with
Comments
Rick Poulin
Project name comes from RequestContext.getSite(). The rest you can get from the Spring ApplicationContext (RequestContext.getApplicationContext()).
tec_iwov
context.getRequest().getServerName()
See:
http://download.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html