Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Captcha image not getting displayed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic