Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Problem with embeding vaadin application into webpage

1 decade ago Aug 31, 2011 5:43pm
Peter Lehto
1 decade ago Aug 31, 2011 6:45pm
Marko Grönroos
1 decade ago Aug 31, 2011 6:58pm

If you want to have any static files in the application, you need to map the Vaadin application servlet to a sub-url, for example:

        <servlet-name>Myproject Application</servlet-name>
        <servlet-name>Myproject Application</servlet-name>

If a Vaadin servlet is mapped to a sub-url, you always need to map the /VAADIN/* to the servlet as well (just once is enough if you have multiple servlets).

Then start the application at [tt]http://localhost:8080/myproject/myapp[/tt] and copy&paste the HTML to the [tt]index.html[/tt] and it should work with [tt]http://localhost:8080/myproject/[/tt].

Last updated on Aug, 31st 2011
1 decade ago Sep 04, 2011 1:58pm
1 decade ago Sep 04, 2011 2:03pm