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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Url-pattern in vaadin application
Hi,
I am trying to use "*.vdn" in web.xml configuration file for vaadin servlet and i´m receiving a red box with the text message: "communication error ..."
My web.xml...
<servlet>
<servlet-name>VaadinApplication</servlet-name>
<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.sinais.midas.vaadin.Consulta</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>VaadinApplication</servlet-name>
<url-pattern>*.vdn</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>VaadinApplication</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
if i use the url-pattern "/consulta/*" it works. This application runs into other web application and is inserted in jsp via iframe tag :
<iframe id="xxx" width="100%" height="500"
marginwidth="10px" marginheight="10px" frameborder="0"
src="consulta.vdn">
</iframe>
any help?
Hübner
Hi Norival,
Im afraid you cannot use *.vdn pattern - this is because a number of Vaadin resources are mapped to your application context, for instance, window url's , image resources url's and so on, so some-name/* pattern should always be used.
Why can't use use /consulta/* mapping and the folloing url in your iframe - src="/consulta/" ?
Dmitri, Thanks for answering the post.
Yes, with "/consulta" it works perfectly. I will use this way now and everything will be ok.
Norival Hübner
Goiânia - GO - Brasil