please tell me how to get relative URL on which my Application is running,
Eg : if i run my application on [quote] http://localhost:8080/openerp
[/quote] or other server location,then i need to read relative path(http://localhost:8080/openerp) of the Application using Vaadin program p:rolleyes:rogram.please help me:blink: :blink:
a) there is a getUrl() method in the Application class. getApplication().getURL() should give you something like what you need.
b) if that is not good enough, you can use ((WebApplicationContext)application.getContext()).getHttpSession().getServletContext() and use the regular servlet methods.
p.s. there is a problem with your keyboard, it puts smiley characters everywhere, making your post hard to read.