Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
    Bookmark Topic Watch Topic
  • New Topic

Captcha image not getting displayed

 
Kanika Singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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..
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic