on 02-06-2007 6:29 PM
Hello everyone,
I'm migrating a webdynpro application from 2004 to 2004s. When retrieving the server url, i have this on my code:
HttpServletRequest req = ((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter)
WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
setRequestURL = "https://" + req.getServerName();
The problem is that WDWebContextAdapter is deprecated, and the cast used doesn't work because the type com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter is not recognized anymore. How can i translate this to 2004s ?
Thank you all
hi,
Check out this.
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
Regards,
Gopi
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.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.