on 08-15-2007 12:12 PM
Hello All,
How should I found the current URL from a webdynpro application?
Thanks
Hi Yoel
You can follow this code :
//get deployable object name that the component belongs to
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try{
WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName,"WDApp",WDDeployableObjectPartType.APPLICATION);
String urlToWDApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
}catch(Exception ex){
wdComponentAPI.getMessageManager().reportException(ex.getMessage(),false);
}
I hope this helps you.
Regards
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can do it by finding IPaddress and port number of you application..
getWebContextAdapter().getHttpServletRequest.getServer...
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
now you have to form url as
http://hostName/+port as a string
this will solve your problem
regards
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
good
go through this link,hope help you solve your problem
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
could you please elaborate your question.
regards
ambicasony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.