Forums Register Login

Captcha image not getting displayed

+Pie Number of slices to send: Send
The captcha image ( for word verfication) is not visible on screen. The captcha is generated using a servlet at run time. The servlet streams the generated image directly by writing to the servlet output stream.
There is no exception in the logs even on catching throwable type. Also we can see the random string being generated and printed in logs. On writing the url of the servlet directly also we dont see the image.
Additionally a strange behaviour is at times if we keep on refreshing the page, the image appears at some wrong location on the page. Similar behaviour is also observed in case of directly accessing using servlet url. There is no consistent pattern in the above behaviour.
Can someone please suggest.. this is pretty urgent. Also there has been no code changed. It worked fine before. But now on a new server it is giving issues. Earlier it was jus a different version of the same server. But it was working fine. Can anyone urgently suggest..
+Pie Number of slices to send: Send
Welcome to Javaranch Kanika Singh

Can anyone urgently suggest..



Take a look at this.

Earlier it was jus a different version of the same server.


Which server were you using before and which is the current one?
Anyways I dont think that it has anything to do with the serve version.
Can you post the code?
[ November 05, 2008: Message edited by: Amit Ghorpade ]
+Pie Number of slices to send: Send
 

The captcha image ( for word verfication) is not visible on screen.



If this was my problem I would first be using browser side tools to examine exactly what HTML tags the browser is trying to interpret to display the image. Firefox plugins are great for this.

Bill
No more fooling around. Read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 1153 times.
Similar Threads
captcha, using simple servlet and struts mapping
simple change to code that uses HTTPUrlConnection to make post request to a form
Having issues using ajax to reload captcha
Double Buffering in jdk1.4.1_02
A more readable captcha
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:18:02.