Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24
  1. #21
    Dreaming is offline Member
    Join Date
    Oct 2011
    Posts
    49
    Rep Power
    0

    Default Re: Geting image from a servlet in a jsp

    Yeah did, still same result. The problem is that the servlet does not seem to be called at all, why, I have no idea. When I view the page source, the servlet has a hyperlink.
    Last edited by Dreaming; 01-23-2012 at 10:58 PM.

  2. #22
    arielb is offline Member
    Join Date
    Jan 2012
    Location
    Panamá
    Posts
    41
    Rep Power
    0

    Default Re: Geting image from a servlet in a jsp

    Passing the test you what you do in the servlet to a JSP file and place it autoFlush = "true"
    in jsp
    <%@page contentType="text/html" pageEncoding="UTF-8" autoFlush="true"%>
    in other jsp
    <img src="youjsp.jsp">

  3. #23
    Dreaming is offline Member
    Join Date
    Oct 2011
    Posts
    49
    Rep Power
    0

    Default Re: Geting image from a servlet in a jsp

    My image source is a servlet, not a jsp. But I did place auoFlush = true at the top as you suggested and it made no difference.

  4. #24
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,856
    Rep Power
    19

    Default Re: Geting image from a servlet in a jsp

    WHat happens with a plain html page with that img tag in it?
    Forget about the JSP.
    Just have a plain html page on <your website> with that img tag in it, then check whether it is calling that servlet by debugging it.
    Use a browser debugging kit (say Firebug for Firefox, or the inbuilt one for Chrome, or whatever the IE one is called) to see what request are being made by this plain html page and which ones are failing. If that img request is not failing then your servlet is being called.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Image Upload use Only servlet and jsp
    By RaviGupta0709 in forum Java Servlet
    Replies: 2
    Last Post: 05-31-2011, 06:49 AM
  2. How to upload image in jsp/servlet
    By ibhaviik in forum Java Servlet
    Replies: 11
    Last Post: 11-16-2010, 11:32 AM
  3. geting value from text
    By Mekonom in forum New To Java
    Replies: 10
    Last Post: 12-15-2009, 12:22 AM
  4. sending image file from JSP to Servlet
    By ravian in forum Advanced Java
    Replies: 2
    Last Post: 01-10-2008, 02:34 PM
  5. problems when loading an image in servlet
    By oregon in forum Java Servlet
    Replies: 1
    Last Post: 08-05-2007, 06:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •