on 07-17-2007 2:26 PM
Hi All,
Is it possible to get the URL of the Enterprise Portal (http://<host>:<port>/irj/portal) in the web dynpro code?
Actaully i am sending mails from my application to various users and need to include the URL of the Enterprise Portal in the mail.
How to go with this? Any ideas?
Thanks,
Venkat
Hi,
If you build the mail message from your dynpro application than you can use this code to get the server name and port:
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
String url = "http://" + hostName + ":" + port + "/irj/portal";
Hope it helps,
Roy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.