Im creating an email and the email has a url link in it. I want to get the whole url and context so I can redirect the user to where I wish. Right now my code looks like this
String baseURL = request.getScheme() + "://" + request.getServerName()
+ request.getContextPath().concat(content);
is there a way to simplify this and get the same info?