It's the protocol for MIME type application/x-www-form-urlencoded Does it work ok?
Freelance Java Enterprise Developer
Spring Oracle SQL JPQL Sybase EJB CDI Glassfish Apache JAX-RS Primefaces UNIX Paypal and more..
@BRENDAN no it doesnt show image at all since it is not getting replced with %20.Do u have any solution???
looks like I was wrong in saying that is was standard encoding, the man himself says it's a bug so it surely
is a bug.
p.s. looks like you'll need JSF 2 for this exact solution, is that what you're using? there will be an alternative
way of doing it if you're on 1.2.
I will explain what exactly am doing ok.at the backend am checking that whether that image url exists or not..
By foolowing code:
in those image files names spaces are there....problem is here only while check it is saying that it gives 404 exception.
HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection();
LOGGER.info("URLName------" + URLName);
LOGGER.info("HttpURLConnection con------" + con);
LOGGER.info("con.getResponseCode()------" + con.getResponseCode());
LOGGER.info("HttpURLConnection.HTTP_OK------" + HttpURLConnection.HTTP_OK);
boolean urlExists = false;
if (con.getResponseCode() == HttpURLConnection.HTTP_OK)
urlExists = true;
LOGGER.info("inside urlExists------" + urlExists);
LOGGER.info("outside urlExists------" + urlExists);
catch (Exception e)
LOGGER.error("Error while urlExists---" + e.getMessage());
am using JSF 2.0 version only...