on 2007 Jan 09 4:19 PM
Hello,
I have searched through many posts in thsi forum but I can't find any usable solution. I checked the Inter-Application-Navigation Tutorial as well which came up with the getApplicationURL method.
What I want to do is: Generate an <u>absolute</u> URL to another Web Dynpro Application...
Send this link by Email from my Application...
So the user can click on the Link in the Email and go directly to the second application - easy job you may think. In fact sending Email and getting URL Parameters was the easy part, but getting the URL gets complicated.
What I tried already in some variants:
wdComponentAPI.getURLService().getGeneralService().getApplicationURL("local/AppWD", "AppName");
-> I get a <b>relative</b> URL which is totally useless... Also if i do that with DeployableObjectPart as argument
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName, "AppName", WDDeployableObjectPartType.APPLICATION);
String url = WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart);
I get an URL like that:
which is not usable as well and those getAbsolute* methods are deprecated.
<b>Is there no way to create an <u>absolute</u> URL to a WD Application running on the same server programmatically?</b>. I mean building it by hand is not a problem, but not what I want...
Best regards,
Frank
strURL =
WDURLGenerator.getAbsoluteWebResourceURL(
"path",//Development Component NAME
"appliication_name").replaceAll("resources", "dispatcher") ;
Message was edited by:
Roberto Tagliento
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This looks like an undocumented feature? Because I can't find this class in WD documentation?
As long as there is no official way I keep my workaraound... But thanks for your efforts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes would be... What I did so far is to put what I get from the Absolute method in java.net.URL...
Get Protocol, Host and port from the URL and build it together with getStaticURL() (for '/webdynpro/dispatcher' part) and Name of deployable Object to the correct URL myself... It works... but I think its not the way it should work...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
URLGeneratorInternal is an internal WD framework class and you are not supposed to use it.
To answer the original question, there is no direct API available that will give the WD application URL. You can build it manually, ofcourse, through
WDURLGenerator.getDynamicApplicationURL
and
WDURLGenerator.getStaticApplicationURL()
.
Regards,
Satyajit.
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.