-
Sep 3rd, 2012, 08:13 AM
#1
Retrieving the servlet context path upon startup of a Spring web application
Hello,
I would like to be able to dynamically retrieve the "servlet context path" (e.g. http://localhost/myapp or http://www.mysite.com) for my spring web application from a Service spring bean.
Ideally I would retrieve the context path upon startup of the application and having it available for retrieval at all times by all my services.
The reason for this is that I want to use this value in email that are going to be sent to users of the website.
Can anyone please advise?
Regards,
Julien.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules