H
Hamvil
Hi,
I would like to know if there is ways to obtain the uri of the current
webapp by using the InitialContex object.
Basically I'm inside a method of class differente from the Action
class and i need to know the address of my webapp.
So when I run it on my machine, the returned value must be:
http://localhost:8080/myapp/
I hope that the problem is clear. There is a way to resolve it without
passing to the function explicitely the URI (I think that this can be
done by using the HttpServletRequest object).
Best
I would like to know if there is ways to obtain the uri of the current
webapp by using the InitialContex object.
Basically I'm inside a method of class differente from the Action
class and i need to know the address of my webapp.
So when I run it on my machine, the returned value must be:
http://localhost:8080/myapp/
I hope that the problem is clear. There is a way to resolve it without
passing to the function explicitely the URI (I think that this can be
done by using the HttpServletRequest object).
Best