on 12-08-2005 6:11 AM
Hi,
How can i from my webdynpro code get the hostname and the port of the server in which the program is running?
Thanks in Advance!
Jo
Hi All,
I could finally get the solution for this. Mostly this will work in NW04S - for versions prior to that, we can use the
getWebContextAdapter().getHttpServletRequest.getServer...
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
Thanks!
Jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I want to construct a URL with the server on which the application is running - this is dynamic.
WDURLGenerator is not helping when i call teh URL from GP Runtime within the portal - so i am trying to construct the URL for the appplication that i need to open in a new window.
Thanks!
Jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jo,
I think so u can retrive using this URL:
http://<host name>:<port number>/webdynpro/dispatcher/local/<Web Dynpro project>/<name of Web Dynpro application>.
check on to this link for more details:
http://help.sap.com/saphelp_erp2005/helpdata/en/7d/09044132bcef23e10000000a155106/frameset.htm
Hope tihs helps u,
Regards,
Nagarajan.
Hi Jo,
U can directly c ur host name and port of the server in ur j2ee engine itself.why do u want to get it through the code?
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.