on 03-11-2008 10:51 AM
I'm working on an application in which the following code can be found:
String absoluteWebResourceUrl = WDURLGenerator.getAbsoluteWebResourceURL(depObjectpart);
String dynamicApplicationUrl = WDURLGenerator.getDynamicApplicationURL(depObjectpart);
String staticApplicationUrl = WDURLGenerator.getStaticApplicationURL();
String[] arr_serverUrl = absoluteWebResourceUrl.split("/");
String portalApplicatonUrl = arr_serverUrl[0] + "//" + arr_serverUrl[2];
// append rest of application URL
portalApplicatonUrl += staticApplicationUrl + "/" + dynamicApplicationUrl;
This URL, concatenated with a request parameter, is used in some mails that are sent from the application.
But now WDURLGenerator.getAbsoluteWebResourceURL(DeployableObjectPart) has been deprecated. So I'm looking for an alternative to this code. Any ideas?
Thanks,
Lieven
Hi ...
Try using
WDURLGenerator.getWebResourceURL(DeployableObjectPart);
Regards
Akshaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use this:
/**
*here resourceName is a String which is the name of the resource being looked up.
*for example, if the resource is an html file then resourceName parameter should contain
*the name of the html file
*/
WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart, resourceName)
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.