In Wicket I add a new image to the page:
String filename = "images/specialLogo.jpg";
add(new Image("logoImage", new ContextRelativeResource(filename)));
How can I check whether this "specialLogo.jpg" file exists, through adding before the filename a correct path where the application .war file has been placed (ContextRelative)?
In other words: how to do:
if (exists) {
add...(specialLogo)
} else {
add... (normalLogo)
}