0

I have implemented an automated email system where the email would be sent to the user's inbox where the user will click on the link to be able to navigate to the complete page.

This is the url which is already hard coded in my local. http://localhost:8080/reqman2/faces/pages/viewRequest.xhtml?requestID= 20

But tomorrow it might be changed to http://C008.abc.com:8080/reqman2/faces/pages/viewRequest.xhtml?requestID= 20 or anything else as per the requirement.

I want this localhost be changed to c008.abc.com or any other name programmatically. Please let me know and guide me through the best solutions could be. Thanks.

rinku
  • 11
  • 3
  • "**as per the requirement**" - if you told us what the "**requirement**" actually was then maybe we could help. Please read [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask). then post your source code as a minimal example, see [How to create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) – DavidPostill Jul 20 '14 at 06:30
  • @DavidPostill I want this localhost be changed to c008.abc.com – rinku Jul 20 '14 at 06:44
  • possible duplicate of [replace String with another in java](http://stackoverflow.com/questions/5216272/replace-string-with-another-in-java) – DavidPostill Jul 20 '14 at 06:50

0 Answers0