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.
Embedded TYPE_BROWSER Detecting Reachable/Non Reachable
Embedded obj = new Embedded();
obj.setType(Embedded.TYPE_BROWSER);
obj.setsource("url")
is it possible to detect whether "url" is reachable or not?
how to detect this?
https://vaadin.com/forum/-/message_boards/view_message/1092203
Hi,
I'm not aware of such a feature being supported by the Embedded component.
However, you could try to connect to the URL first from the server side code, using e.g. HttpURLConnection and show either the Embedded or an error message to the user based on the response you get (or do not get).
-Tepi