How to display JPEG in JSP w/o IMG tag?

I have a working application where a jpeg image is ecoded on the server via a JavaBean. The bean is then forwarded to a JSP, which gets the unique jpeg filename from the bean and displays it with an html <IMG> tag. All's fine and well, but I'd like to get away from having lots of image files laying around on the server and just display the image encoded in the current request. I tried creating a custom tag to encode and display the jpeg using the com.sun.image.codec.jpeg.* package in this manner:
ServletResponse res = pageContext.getResponse();
OutputStream os = res.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
encoder.encode(imageRef); //-- imageRef is instance of BufferedImage
and in the JSP:
html, other tags, etc.
<graph:image imageRef='<%= imageBean.getImage() %>'/>
The image displays, but nothing else in the JSP (ie. html, other custom tags). In all other tags I've written, JSPWriter is used for output, but I need an OutputStream for the createJPEGEncoder() method.
Can anyone tell me if what I want to do is possible? I'm chasing my tail at the moment.
TIA Mark

Would this work for you:
Create the IMG tag in the JSP with the SRC as a servlet.
Also, add any parameters you may need to tell the servlet what image to send back.
Something like this:out.print("<IMG SRC=\"/servlet/ImageProducerServlet?WhichImage=");
out.print("MySpecialImage");
...The ImageProducerServlet can be setup to send back the JPEG image file.

Similar Messages

  • How to display PDF in JSP using Iframe

    Hi All,
    I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.
    This method will be called from JSP by this way
    s:property value="getGeneratedPDF()" />
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
    questions 2 -- How to display it in Iframe?
    Please help me , If you know the solution.
    Thanks in Advance,
    Jimmy

    jamy_26 wrote:
    But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.A PDF file is a binary file, not a text file, and you're trying to display it as String. Of course you would get "junk characters". Have you ever tried opening a binary file (pdf, doc, jpg, xls, etc) using a text editor like Notepad?
    I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?Display it as binary stream, not as text stream. You can display it standalone, just let the link/form/addressbar URL point to some Servlet which writes the InputStream of the PDF file to the OutputStream of the response, along with a correct set of response headers (at least content-type, content-disposition and content-length), so that the browser can open it in the correct application (which is usually Acrobat Reader). If you want to embed the PDF file in a JSP, then one of the ways is indeed using the HTML <iframe> tag.
    questions 2 -- How to display it in Iframe? Just let the iframe URL point to the aforementioned Servlet.
    You can find here an example of a generic file servlet, you may find it useful to get the idea how to do it: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • How to display records in jsp

    i have 100 records can anybody tell me how i display records 10 at atime in jsp & by clicking the next button another 10 records displays in the same jsp. How i can do that thing.

    You have to implement a page breake yourself.
    Simple scenario would be to store a page number into a session:
    session.setAttribute("page", selectedPage)
    every time user clicks on a next page link
    When displaying the record read the page and display only those which should be on the page
    Integer selectedPage = session.getAttribute("page")
    if (selectedPage == null) selectedPage = 1;
    //display code goes here

  • How to display  table in jsp pages

    hi all ,
    i want to diaplay the table in jsp page...ie,if i click on some option then i need to get the table in jsp page
    wiil u plz help me
    thanks in advance
    chintu

    hi all..
    i didnt ask how to design table in jsp...i am asking how to diaplay the table with data already stored in database...i just want to retrive the values in table and display in jsp.....
    thanks in advance...
    chintu

  • How to display meesage in JSP from DAO.java

    Hi all,
    I have a Dao.java coding where i have my oracle queries executed.i have separate functions for every query.It should return boolean value.If the 1st functions returns true,then the second function should be called.if it returns false,i have to display some message like "You have received the message already" in my JSP.i use JSP,Servlet and Dao.
    How to execute this.How to display the message.Pardon me if its too silly.Help me out guys.
    If(true)
    call 2nd function
    else
    display message
    }

    What have you tried?
    What happened?

  • How To Display JasperReport From JSP ????

    Hi All ;
    I am new user for JasperReport ;
    Please Help ME :::
    How Can I Display JasperReport From JSP ????
    Regards;

    BalusC wrote:
    Follow those steps to get a listing of useful links how to learn JasperReport:
    1) Go to http://www.google.com, you'll see one input field and one button.
    2) Enter "jasperreport tutorial" in that input field.
    3) Hit the button next to that input field.and don't forget to pose this question @ http://jasperforge.org as that would be a better place where you can get better replies as people their specialize on the solution offered by jasper soft such as Reporting,BI and blah blah blah.
    and for the time being hope the below thread might give you a basic start if you have basic understanding of how Jasper Reporting works.
    http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
    http://forum.java.sun.com/thread.jspa?threadID=5212278
    Hope there are no hard issues on this,as it is just to point you to the right direction :)
    REGARDS,
    RaHuL

  • How to display photo in jsp through blob from oracle

    i am struggling here to retrieve an image which is stored in oracle-blob data type through jdbc-type-1.and i am unable to display that in jsp.i had a rich code library for this problem.but nothing gave me the exact solution.
    please give me exact the solution..
    pls ...

    What have you tried?
    What happened?

  • How to display arraylist in jsp

    I try to display arrayList
    past from servlet
    my code looks like
    <%@ include file="/expires.jsp" %>
    <%@ page language="java" import="java.sql.*" contentType="text/html;charset=UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CEDARS</title>
    </head>
    <body>
    <% String allFound = (String) session.getAttribute("allFound");
    hallA mydata= new hallA();
        for(int j=0; j<allFound.length(); j++){
                          mydata=(hallA)allFound.get(j);  %>
                     <tr>          
                     <td>mydata.getUniversityN()</td>
                      <td> mydata.getName()</td>
                      <td>mydata.getRnumber()</td>
                      <td>mydata.getCurricumlum()</td>
                      <td> mydata.getGender()</td>
                      <td>mydata.getYear()</td>
                      <td>mydata.getMobilNo()</td>
                      <td>mydata.getEmail()</td>
                      <td> mydata.getFinalYear()</td>
                      <td> mydata.getPeriodOne()</td>
                      <td> mydata.getPeriodTwo()</td>           
                    </tr>          
           <%}%>  
    </body>
    </html> and I got the error like
    Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 13 in the jsp file: /showResultA.jsp
    hallA cannot be resolved to a type
    10:
    11:  
    12: <% String allFound = (String) session.getAttribute("allFound");
    13: hallA mydata= new hallA();
    14:     for(int j=0; j<allFound.length(); j++){
    15:                       mydata=(hallA)allFound.get(j);  %>
    16:                  <tr>          
    An error occurred at line: 13 in the jsp file: /showResultA.jsp
    hallA cannot be resolved to a type
    10:
    11:  
    12: <% String allFound = (String) session.getAttribute("allFound");
    13: hallA mydata= new hallA();
    14:     for(int j=0; j<allFound.length(); j++){
    15:                       mydata=(hallA)allFound.get(j);  %>
    16:                  <tr>          
    An error occurred at line: 15 in the jsp file: /showResultA.jsp
    hallA cannot be resolved to a type
    12: <% String allFound = (String) session.getAttribute("allFound");
    13: hallA mydata= new hallA();
    14:     for(int j=0; j<allFound.length(); j++){
    15:                       mydata=(hallA)allFound.get(j);  %>
    16:                  <tr>          
    17:                  <td>mydata.getUniversityN()</td>
    18:                   <td> mydata.getName()</td>
    An error occurred at line: 15 in the jsp file: /showResultA.jsp
    The method get(int) is undefined for the type String
    12: <% String allFound = (String) session.getAttribute("allFound");
    13: hallA mydata= new hallA();
    14:     for(int j=0; j<allFound.length(); j++){
    15:                       mydata=(hallA)allFound.get(j);  %>
    16:                  <tr>          
    17:                  <td>mydata.getUniversityN()</td>
    18:                   <td> mydata.getName()</td>
    Stacktrace:
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)I don't know how to fix it
    thnak you

    hi evnafets,
    thnak you
    for the reply
    I presume you have a session.setAttribute() call in your servlet? yes so what is the mistake I made?1. I put both standard.jar and jstl.jar under E:\apache-tomcat-6.0.10\lib
    2. I copy the tld into E:\apache-tomcat-6.0.10\webapps\Hall\WEB-INF\
    3. I change my xml to<?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
        version="2.5">
        <session-config>
            <session-timeout>10</session-timeout>
        </session-config>
             <welcome-file-list>
              <welcome-file>Hall1.jsp</welcome-file>
         </welcome-file-list>
        <servlet>
            <servlet-name>submit</servlet-name>
            <servlet-class>submit</servlet-class>
        </servlet>   
        <servlet-mapping>
            <servlet-name>submit</servlet-name>
            <url-pattern>/servlet/submit</url-pattern>
        </servlet-mapping> 
    <taglib>
        <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
        <taglib-location>/WEB-INF/fmt.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
        <taglib-location>/WEB-INF/c.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
        <taglib-location>/WEB-INF/sql.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
        <taglib-location>/WEB-INF/x.tld</taglib-location>
      </taglib>
    </web-app>jsp<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ include file="/expires.jsp" %>
    <%@ page import="java.util.*"%>
    <%@ page import="cedars.hallA"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CEDARS</title>
    </head>
    <body>
    <% ArrayList allFound = (ArrayList) session.getAttribute("allFound"); %>
    hallA myData= new hallA();
    <c:forEach var="myData" values="${allFound}">
    <table>
      <tr>
        <td>${myData.name}"</td>
        <td><c:out value="${myData.name}"/></td>
        <td><c:out value="${myData.currculum}"/></td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    *error is ���d�I: Servlet.service() for servlet jsp threw exception*
    *org.apache.jasper.JasperException: /showResultA.jsp(13,0) Attribute values invalid for tag forEach according to TLD*     at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
         at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1198)
         at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:819)
         at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         at org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at displayhallF.doPost(displayhallF.java:166)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
         at java.lang.Thread.run(Thread.java:619)
    {code}
    thank you                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to display jpeg until user click play?

    I am new to Flash 8 and am trying to get up to speed. I have
    a flash video (inside a swf) on a website that displays a blank
    screen until the view presses play. Instead of the blan screen, how
    could I display a jpeg on the screen (via URL) until the user
    presses play, at which point the jpeg dissappears and the movie
    starts.
    I would appreciate anyone who could point me to an example of
    how to do this. Thanks!

    I am new to Flash 8 and am trying to get up to speed. I have
    a flash video (inside a swf) on a website that displays a blank
    screen until the view presses play. Instead of the blan screen, how
    could I display a jpeg on the screen (via URL) until the user
    presses play, at which point the jpeg dissappears and the movie
    starts.
    I would appreciate anyone who could point me to an example of
    how to do this. Thanks!

  • How to display images in JSP

    Hi all,
    I created a Jsp page and I stored my images in the dist-->images folder and by using the following code
    <% String image = componentRequest.getWebResourcePath() + "/images/image.gif"; %>
    <img src="<%=image%>">
    I try to display the images in that page.
    Yes I am successful in displaying one image.
    But my problem here is to display more than two images which are present in that page.
    Can any body help me regarding this.
    Your help will be highly rewarded with points.
    Regards,
    Ramana.

    Hi Ramana,
    Set the image border to 1 and check atleast your borders get displayed. If it displays the border, then the problem may be with your image path.
    Before deploying for each modification in your JSP, check the preview of the page using "Preview" tab.
    Are you getting any exception?
    Check your whole JSP page once again (check all the scriplets).
    Regards,
    Uma
    Message was edited by: Uma Maheswari

  • How to Display Catalog in JSP ?

    Hi All
    I created one custom catalog but I am unable to display in jsp level.
    I ran the basic catalog maintenance service in dyn admin.
    Are there any other Configurations required ?
    Could anybody provide the solution ASAP .
    Thanks in Advance,
    user8729783

    Try This.
    <dsp:droplet name="/atg/dynamo/droplet/ForEach">
      <dsp:param name="array" bean="Profile.catalog.rootCategories"/>
      <dsp:oparam name="output">
      <dsp:droplet name="/atg/commerce/catalog/CategoryLookup">
      <dsp:param name="id" param="element.id"/>
      <dsp:oparam name="output">
      <dsp:droplet name="ForEach">
      <dsp:param param="element.childProducts" name="array" />
      <dsp:oparam name="output">
      <dsp:param name="deviceItem" param="element"/>
      <dsp:getvalueof var="productId" param="deviceItem.id" idtype="java.lang.String"/>
      <dsp:droplet name="ForEach">
      <dsp:param name="array" param="deviceItem.childSKUs"/>
      <dsp:param name="elementName" value="childSku"/>
      <dsp:oparam name="output">
      <div style="width:306px;float:left;padding:10px;">
      <div style="font-size: 12px;font-weight: bold;">
      <dsp:valueof param="childSku.displayName"
      valueishtml="true">Name Not Available</dsp:valueof>
      </div>
      <div style="float:left;padding:15px">
      <dsp:getvalueof id="imagepath" param="childSku.smallImage.url" idtype="java.lang.String">
      <%imagepath = "/dyn/dyn" + imagepath;%>
                  <dsp:img src="<%=imagepath%>"/>
                 </dsp:getvalueof>
      </div>
      <div>
      <div class="termPrice"><dsp:valueof param="childSku.listPrice" converter="currency"/></div>
      <div class="agreement">with No term</div>
      </div>
      <div>
      <dsp:valueof param="childSku.description"
      valueishtml="true">Name Not Available</dsp:valueof>
      </div>
      <div style="padding-left:150px;">
      <dsp:a href="sku_Selection.jsp">
      <dsp:param name="childEachSkuId" param="childSku.id" />
      <dspel:param name="productId" value="${productId}" />
      Learn More
      </dsp:a>
      </div>
      </div>
      </dsp:oparam>
      </dsp:droplet>
      </dsp:oparam>
      </dsp:droplet>
      </dsp:oparam>
      </dsp:droplet>
      </dsp:oparam>
      </dsp:droplet>
    Thanks,
    Mathew.

  • How to display arabic charsin jsp

    hello,
    I try to display an arabic text on the jsp
    <meta http-equiv="Content-Language" content="ar-ae">
    <%@ page language="java" contentType="text/html;charset=windows-1256" pageEncoding="UTF-8"%>
    <html>
       <p>&#1580;&#1575;&#1605;&#1593;&#1577; &#1575;&#1604;&#1593;&#1604;&#1608;&#1605;</p>
    </html>
    but I see only ????
    why

    anybody in thos world to help me ???

  • Display date in jsp. using struts, JSTL

    want to display today's date in format October 18, 2006
    how to get today's date and how to display it in jsp?
    I am using struts framwork and JSTL tags in my JSP.
    Thanks.

    rizza_99 wrote:
    The page underlines {<fmt:formatDate value="${now}" type="both" dateStyle="long" />} says
    attributte value doesn't accept any expressionsWait, you said "the page underlines"?? So you're using an IDE? Are you sure that it a JSTL problem and not an IDE problem? Ignore the IDE and just execute the code. Does it work without any compilation errors or runtime exceptions? If so, then there's a problem in the IDE.

  • How to display uploaded jpeg in jsp

    hi all,
    i am uploading image(jpeg) using FormFile in ..............
    then i am trying to display into the jsp but its display bytes only...........
    my code is as below
    jsp
    <html:form action="/viewImage.do" method="post"     enctype="multipart/form-data">
         <table cellpadding="0" cellspacing="0" border="0" summary="Image table">
              <tr>
                   <td align="right">Image </td>
                   <td align="left">
                        <html:file property="image" />
                   </td>
              </tr>
              <tr>
                   <td align="center" colspan="2">
                        <html:submit property="saveImage">Upload Image</html:submit>
                   </td>
              </tr>
    </table>
    </html:form>
    ------------------------my action is
    public void disImage(ActionMapping mapping,
                   ActionForm form, HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
              CompanyImageForm companyImageForm = (CompanyImageForm)form;
              FormFile myFile = companyImageForm.getImage();
         String contentType = myFile.getContentType();
         String fileName = myFile.getFileName();
         int fileSize = myFile.getFileSize();
         byte[] fileData = myFile.getFileData();
    InputStream in = new ByteArrayInputStream(fileData);
         BufferedImage image=javax.imageio.ImageIO.read(in);
    response.setContentType(contentType);
    OutputStream sos = response.getOutputStream();
    ImageIO.write(image,"jpeg",sos);
    }

    Well here is an idea for you...
    1).Upload a File.Now this would be associated with an object like FileItem or FormFile whatsoever implementation we are using make sure the View Object we are using for this implementation is Serializable.
    2).Save the View Object (Form Bean) under the scope of session and forward/redirect it to a JSP.
    3).In the redirected/fprward JSP use <img> tag or equivalent framework tag and make sure you refer the src to a dedicated ImageServlet / Backing Bean(FormAction) Action or etc as per URL settings you are using.
    4).Use the logic which my fellow poster Balus has asked you to apply.
    Hope that might give you some idea.
    REGARDS,
    RaHuL

  • Display jpeg byte array with JSP !!

    I am new in JSP area so maybe I ask a easy question !!
    First, on the server side:I use a C++ program to stream sequence jpeg data out(FF D8 ~ FF D9).
    Second, on the client side:I use jsp to open a socket and read
    data to a byte array.
    Can anyone tell me how to display the jpeg array on browser one by one ?

    um... like video frames, or just a single image? I wouldn't really use JSP for that, I'd use a servlet, set the content-type to image/jpeg and just write out the bytes. Unless you are talking about displaying the bytes themselves, in which case, a JSP page would be better. If it's video frames, I'm not sure how to have the browser do that, since most no longer support server push.

Maybe you are looking for

  • Album artwork/screen saver problem

    I having a similar problem too like most on here, but it has a slight twist to it. This is just recent happened to me and I am not sure if any other people on here has experienced it. I was adding some music and my iTunes loaded the music into my lib

  • Scheduling interface in a particular time

    Hi I have a file-xi-proxy scenario where file to be picked up from FTP Folder only twice in a day. (5 AM and 10 PM) Duration of pick-up is only 30 min. Is it possible to schedule the communication channel as said above ?? Any help is appreciated. Reg

  • Dimension formula values

    I have dimension members values  with formula. Though values are generated at member level,at the parent hierarchy level the values are not getting rolled up. I am in BPC7NW...any suggestion , inputs welcome...

  • Opening tabs in Safari becomes extremely slow

    I have noticed that after having Safari open (in the background, not always being actively used) for a while that it will eventually become very slow at opening new tabs. I use iStat menus, and when Safari becomes slow, it will max out the CPU when o

  • Labview 8.6 crashes when started

    Hi, I just installed labview 8.6 in an old Linux machine (kernel 2.4.21), and even when labview installed fine (no errors or warnings at all), when I start labview, it crahses with this message: LabVIEW caught fatal signal 8.6 - Received SIGSEGV Reas