Displaying Images through Servlets

I am using Servletrunner utility to run my servlets. How can I display Images along with other HTML text, to the Browsers through Servlets?

Print out the <img> tag. The URL you use may in turn reference another servlet that produces an image. You can look at the Java2D (and perhaps Java3D, if you want 3D images) to help you produce the images.

Similar Messages

  • Store Image through Servlet

    I want to store a JPG image into database column through Servlet
    and dispaly it on a JSP page through Beans
    how can i ?

    Any requests made to a JSP are of a certain content. Generally you make a request to a JSP page it sends back a "text/html" document. There is noi binary data as such just text.
    Images on a page are displayed because the "src" attribute of the image tag points to a server location. This in turn returns content of type "image/*".
    A servlet can retrieve/generate your images for you for example you could point to a servlet:
    <img src="/system/imageServlet">
    I guess a JSP can do the same (I've never tried it) just remember to set the response.contentType to "image/gif"/"image/jpg".....
    Cheers,
    Anthony

  • Display image in Servlet

    Hi everyone,
    I have a servlet and I would like to display an image on it, the image is already saved in the server in a folder. My current solution is to save the image to the client machine first then display. I feel it is not a good way.
    Do we have any other ways to do it ?
    Thank you very much for your suggestion.
    Regards
    Ryzin.

    My current solution is to save the image to the client machine first then display. How have you done it? This is technically impossible without asking permissions and knowing where the client have chosen to store it. Something says me that you're running the server as well as the client at the same PC in your development environment and that you're expecting that you can also write to client's file system in the real world, while the server is actually located at the another end of the network. Well, this is actually not true, that would be a big security hole, a server which unaskingly write files to the client's file system.
    Anyway, you can also just output <img src> pointing to another servlet which on it's turn streams the images to the client. Here is a good example:
    http://balusc.blogspot.com/2007/04/imageservlet.html

  • Displaying image in servlet

    I have a page which retrieves data from the database and displays it in the html using servlets. Now i want to show the image in one of the column of the table, but i want to the image to be written to the browser directly instead of refering to a image file saved on the file system. This is very urgent please help

    phani_virinchi wrote:
    I have a page which retrieves data from the database and displays it in the html using servlets. Now i want to show the image in one of the column of the table, but i want to the image to be written to the browser directly instead of refering to a image file saved on the file system. why?
    This is very urgent well then you better get started!

  • How to display image through script

    Hi,
    In my template I am passing image path through xml, I need to display this image on XDP template.
    Please help for the same,
    I tried
    ImageField1.resolveNode("value.#image").href = "C:\\logo.jpg";
    Image1.resolveNode("value.#image").url=".\logo.jpg";
    But it doesn't help, Is I am doing any mistake or is there any other way.
    Thanks,
    Abhijit

    Got the solution,
    first need to convert the imge into base 64 encoded string, and then pass it through xml.
    do the binding with imageField, and make it readonly.
    To covert image into base4 use below code
    //convert image file into byte array this case - buf
    String base64EncodedStr =
    new sun.misc.BASE64Encoder().encode(buf);

  • Displaying images through forms6 stored as bfile

    The image is stored in a database as bfile datatype. How the image can be displayed using forms6?

    Two columns table (varchar2 and bfile)
    wizard to create form on the two columns:
    when I compile and run, going in query mode
    I receive oracle error
    22288 (Serevr is 8.1.6.1 on linux kernel 2.2.14)
    Via sqlplus accessing to the bfile I encounter no problem.
    If in forms I select help--> display error
    I can see that it attempts to make a select on the bfile column.
    How to debug?
    Thanks in advance.
    null

  • Displaying images that are accessed through URL

    Hi,
    I have trouble displaying images that are accessed through URLs in my report.
    If I call the URL directly in the Browser the Image can be opened without problems.
    The images can be accessed with an anonymous access.
    When I deploy the report or in the Preview of Visual Studio I get the following message:
    [rsWarningFetchingExternalImages] Images with external URL references will not display if the report is published to a report server without an UnattendedExecutionAccount or the target image(s) are not enabled for anonymous access.
    In Layout View of Visual Studio the image is showen correctly.
    The Images are stored on a Solaris maschine with WebSphere 6.0 as WebServer.
    Any ideas?
    Thank you.
    Frank
     

     Rain3 wrote:
    * Create a new IIS Virtual Directory pointing to the share:
    ** Open IIS Manager on the reporting server (eg. REPORTSERVER ):
    ** Create a new Virtual Directory (Web Sites --> Default Web Site --> New --> Virtual Directory)
    ** In the Alias prompt, type some name (eg. Pics) and in the Path prompt, specify \\SERVER\imageshare . Other options should be left default.
    * When designing reports, use "http://REPORTSERVER/Pics/somepicture.jpg" as the "Value" property for images.
    I have followed these steps but I still can not get the images to display.
    Our reportserver resides in the directory of another website rather than the default site.  I would assume that I would still follow the same procedure that you have listed but it did not help.
    Does anyone have any other recommendations?

  • Having trouble displaying images on a page in APEX through IE.

    I'm trying to conditionally display images (used as toggle buttons) in a tabular report in APEX. This is for our Benefits application where an employee can include or exclude his/her dependents from the plan. For each row, in one column I want to show only 'Include' button if an individual is not already a member, and in another column show only 'Remove' button if already included. I'm using the button images as links and passing information to a page process.
    I was able to come up with the SQL query which works perfectly fine in Firefox. But the images won't display in Internet Explorer. Does anyone have any idea how to make this work in IE?
    Below is my query. This code will display 'Include in plan' image only if the member is not already added to the plan. If 'Y' is the result of the query, then the member is already included and no image is displayed. Otherwise display the image. Pass the member_id to an application item and process the record in a Before Header process.
    select elected_member_id, member_type, last_name, first_name, middle_name, gender,date_of_birth,student_flag,trunc(months_between(sysdate ,date_of_birth)/12) AGE,
    decode((select 'Y'
    from eben_elected_plan_info epi
         where plan_name not in ('Delta', 'Vision', 'HEALTH_FLEX', 'DEP_FLEX')
         and epi.elected_member_id = emi.elected_member_id
         and transaction_type <> 'END'), null,'<a href="f?p=&APP_ID.:70:&SESSION.::::F_APP_MEMBER_INCLUDE:'||elected_member_id||'<img src="&WORKSPACE_IMAGES.include.png"></a>') elected_member_id_include,
    elected_member_id elected_member_id_exclude
    from eben_elected_members_info emi
    where emp_person_id = :f_app_person_id
    and member_type <> 'Employee'

    I was able to resolve this issue by creating the SQL statement from scratch in IE. It then recognized the images.

  • Displaying Image in Document Category Created through N2T6

    Hi Experts,
           I am Creating a Document Category in ISH from Tcode N2T6 i want to display the image on the Screen Created  for Document   Category.
             Please let me know how to display image in document category.
    Regards,
    Rajesh

    Hi Rajesh,
    there are a few options to integrate images into a PMD application. At the end it depends on your use case. For example an image taken by CT would be shown using an external application, the DICOM viewer. On the other hand a simple picture used for illustration purpose can be easily integrated.
    In case you want to use an external application, I would recommend to implement a button in the PMD or the application toolbar to call the viewer application.
    In case you want to embed the picture into the PMD you have to utilize a Link element. There are a few implementations shipped with the standard delivery. For details check the online help [here|http://help.sap.com/erp2005_ehp_05/helpdata/en/4d/c7854878c86d4be10000000a42189e/frameset.htm] In paticular please check the PICTURE link element type.
    In addition you can also implement your custom link element type.
    Also I would like to share with you, that in the next delivery, Siemens will shipped a link element type for image management. It was designed to work with various image management services, but for now we have a implementation with imagic ims only.
    Hope this helps.
    Axel Biernat
    Siemens AG
    Product Commercialize - Knowledge Transfer

  • ClasscastException while displaying image from content selector

    Hi,
    My requirement is show an image gif file in jsp, through portal.
    This problem is specific to 8.1 version.
    Created an image type content in BEA repository which i could retrieve from workshop
    content preview correctly, with a rule (named filerule).
    However, when tried to display the same from a simple jsp logic, got classcast
    exception.
    Below is the steps i have done.
    1. import <%@ page import="com.bea.p13n.content.ContentHelper"%>
    2.
    <pz:contentSelector rule="filerule" contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
    id="ImageDocs"/>
    <es:forEachInArray array="<%=ImageDocs%>" id="anImageDoc" type="com.bea.p13n.content.Content">
    <img src="ShowDoc/<cm:printProperty
    id="anImageDoc" name="identifier" encode="url"/>"
    </es:forEachInArray>
    The server console shows below exception:
    java.lang.ClassCastException
    at jsp_servlet.__index6._jspService(index6.jsp:19)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
    er.java:208)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:305)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
    FlowRequestProcessor.java:1304)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
    ctor.forward(PageFlowRequestProcessor.java:1320)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
    wRequestProcessor.java:1200)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardCon
    fig(PageFlowRequestProcessor.java:1094)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:279)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:651)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:305)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
    FlowRequestProcessor.java:1304)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
    ctor.forward(PageFlowRequestProcessor.java:1320)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
    wRequestProcessor.java:1200)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:638)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6356)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    Also, there is no luck with displaying text content from a file, using printDoc
    tag. Can some one point me to right resource.

    Hi panji,
    I used 7.0 tag lib, just to make use of "printDoc" tag which is available in 7.0version
    only and not in 810. However, i figured out a way to display image using 8.1 (
    of course, by using request.getContextPath() + "/ShowBinary" + imagedoc.getPath())
    But still, i do not find a way to display a doc type file in jsp, which is my
    original problem.
    As per the edocs at http://edocs.bea.com/workshop/docs81/doc/en/core/index.html,
    <cm:getProperty node="<%=doc_node%>" name="file"/>
    should be able to display a txt file but nothing is getting rendred onto jsp.
    ( i have created a book type content in the repo. and file attached is of type
    txt ).
    Can you pls give some clue what i am missing here?
    thanks
    Ramana
    "Panji Aryaputra" <[email protected]> wrote:
    Hi Ramana, could you just use the ShowPropertyServlet to display the
    image
    in jsp? That's what I am using now. Perhaps you have other reasons not
    to
    use it?
    panji.a
    "ramana" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    My requirement is show an image gif file in jsp, through portal.
    This problem is specific to 8.1 version.
    Created an image type content in BEA repository which i could retrievefrom workshop
    content preview correctly, with a rule (named filerule).
    However, when tried to display the same from a simple jsp logic, gotclasscast
    exception.
    Below is the steps i have done.
    1. import <%@ page import="com.bea.p13n.content.ContentHelper"%>
    2.
    <pz:contentSelector rule="filerule"contentHome="<%=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
    id="ImageDocs"/>
    <es:forEachInArray array="<%=ImageDocs%>" id="anImageDoc"type="com.bea.p13n.content.Content">
    <img src="ShowDoc/<cm:printProperty
    id="anImageDoc" name="identifier" encode="url"/>"
    </es:forEachInArray>
    The server console shows below exception:
    java.lang.ClassCastException
    at jsp_servlet.__index6._jspService(index6.jsp:19)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atcom.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
    er.java:208)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:305)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
    FlowRequestProcessor.java:1304)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
    ctor.forward(PageFlowRequestProcessor.java:1320)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
    wRequestProcessor.java:1200)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardCon
    fig(PageFlowRequestProcessor.java:1094)
    atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:279)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:651)
    atcom.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    atcom.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
    cherImpl.java:305)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(Page
    FlowRequestProcessor.java:1304)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedire
    ctor.forward(PageFlowRequestProcessor.java:1320)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlo
    wRequestProcessor.java:1200)
    atcom.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
    equestProcessor.java:638)
    atcom.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
    sterActionServlet.java:527)
    atcom.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
    onServlet.java:152)
    atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:402)
    atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilte
    r.java:313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:27)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:6356)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    118)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3635)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    Also, there is no luck with displaying text content from a file, usingprintDoc
    tag. Can some one point me to right resource.

  • Response Already commited exception while displaying Image outside WAR File

    My application contains a JSF page, which is bound to a Spring bean. The UI components state of the JSF page is provided by the Spring bean properties (This means the Spring bean is the backing bean of the JSF page) . My problem is the JSF page also contains a graphicImage meant to display image stored outside the WAR file.
    I tried using the ImageServlet that streams the image to the HttpServletResponse as suggested in:
    http://balusc.blogspot.com/2007/04/imageservlet.html However, I receive a Response Already commited exception. I guess this is because the Faces servlet has already sent back a response based on the other UI component values and the ImageServlet is then trying to repeat that. Please suggest how to handle this

    First thanks for your prompt reply but I am still stuck. Let me get into details. My JSF page is:
    <f:view>
      <h:form id="MyForm" >
        <h:graphicImage value="image?file=#{springDaoRef.imageName}&url=#{springDaoRef.imageUrl}"  width="100" 
           height="100"/>
       Category: <h:outputText value="#{springDaoRef.categoryName}"/>
       Image Title: <h:outputText value="#{springDaoRef.imageTitle}"/>
      </h:form>
    </f:view>The ImageServlet is receiving the file and url parameter values and reading quite fine from the image present in the file system. The problem occurs at the following statement in ImageServlet:
    output = new BufferedOutputStream(response.getOutputStream());Im using Glassfish and it reports the following stack:
    ApplicationDispatcher[/OnlinePhotoSharingApp_1] PWC1231: Servlet.service() for servlet ImageServlet threw exception
    java.lang.NullPointerException
            at net.time2know.classes.ImageServlet.processRequest(ImageServlet.java:106)
            at net.time2know.classes.ImageServlet.doGet(ImageServlet.java:123)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:542)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:474)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:366)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
            at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@f801ef) threw exceptionI am assuming that the image request is going through the FacesServlet. But now my question is how to inform JSF that the response is complete (via FacesContext.responseComplete()) which will enable the ImageServlet to send the image response?

  • When displaying images in web browser, next images appears on page where I left last doc

    Hello, I am in need of some help here.
    I have an application that displays PDF images using Adobe Reader X v 10.1.4 through a web browser. What is happening is I view a document and scroll down to say page 2.
    When I leave that document and go the next one, that document opens on page 2.
    Is there anything I can do in the setting of Adobe or the way that I am making my call to show the image through the web browser to display the next image at the top of the page, rather than displaying it where I left off on the last document?
    I have tried unchecking the option for Restore last view settings when reopening a document and also open cross-document links in the same window. Both of these had no effect on the issue I am encountering.
    Any help would be greatly appreciated.
    Thanks!
    Scott

    I am not sure how to fix the problem using the FGL framework, but here is a way to get the right result
    In the CSS file under the @media only screen and (min-width: 769px) section, modify the following style rules
    #menu {
        clear: both;
        float: left;
        margin-left: 0;
        width: 20%;
        display: block;
        vertical-align:top;
    #content {
        clear: none;
        float: right;
        margin-right: 0%;
        width: 80%;
        display: block;
    Having said that, you will do well to scrap FGL and have a look at Bootstrap

  • Display image in bipublisher (10g) template

    Hi,
    Is it possible to display image in template which was stored in database.
    In database we have a table with customer name, customer number and image(BLOB datatype). Is it possible to display it in the report by calling through sql command or else..?
    Thanks.

    Hi,
    Can any one answer this..?
    quering image from database..
    Thanks.

  • Problem in getting the image through URL

    hi all,
    I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
    public void doGet(HttpServletRequest request,HttpServletResponse response)
                        throws IOException, ServletException {
                   int data=0;
                   response.setContentType("image/png");
                   ServletOutputStream out = response.getOutputStream();
                   String file = request.getContextPath()+imageNames[0];
                   //String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
                   BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
                   System.out.println("the size of the inputStream is..."+in.available());
                   System.out.println("the context path is..."+request.getContextPath());          
                   while ((data = in.read()) != -1) {
                   out.write(data);
    with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
    but the same thing(URL address) when i am copying on the browser it was displayig the image.
    (what might be the reason)
    one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
    can anybody give me the solution like where to keep my images by which i can able to get the images through url address
    thanks in advance
    lakshman

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

  • Getting error while updating property of image through weblogic CMS

    Hii
    I want to add alt text and alt title to an existing image through Weblogic Content Management System_ . For that I have used adAltText property of ad content type.
    For that I have refer the following link
    [ http://docs.oracle.com/cd/E13155_01/wlp/docs103/cm/contentTypesCm.html#wp1096390]
    I add values to adAltText. After that clicked on cheach in.
    But while doing cheach in in Weblogic Content Management System_ . I am getting following Exception
    A RepositoryException was thrown: null
    and following is stacktrace:
    com.bea.content.virtual.workflow.WorkflowException
         at com.bea.content.virtual.workflow.PublishAction.execute(PublishAction.java:179)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.handleWorkflowActions(InternalWorkspaceOpsBean.java:524)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.internalCheckIn(InternalWorkspaceOpsBean.java:420)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.checkIn(InternalWorkspaceOpsBean.java:343)
         at com.bea.content.virtual.internal.server.bean.WorkspaceOps_xe5vix_ELOImpl.checkIn(WorkspaceOps_xe5vix_ELOImpl.java:166)
         at com.bea.content.virtual.internal.WorkspaceOpsImpl.checkIn(WorkspaceOpsImpl.java:90)
         at com.bea.content.federated.internal.VersionManagerImpl.checkIn(VersionManagerImpl.java:239)
         at com.bea.portal.tools.content.controls.ContentVersionControlImpl.checkIn(ContentVersionControlImpl.java:165)
         at com.bea.portal.tools.content.controls.ContentVersionControlBean.checkIn(ContentVersionControlBean.java:839)
         at content.BaseContent.doCheckinLatestVersion(BaseContent.java:1127)
         at content.BaseContent.handleLibraryOpForSelectedNode(BaseContent.java:1050)
         at content.node.nodeSelected.properties.NodePropertiesController.checkInLatestVersion(NodePropertiesController.java:530)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:879)
         at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
         at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
         at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
         at global.internal.AbstractBaseController.internalExecute(AbstractBaseController.java:360)
         at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
         at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
         at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
         at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
         at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91)
         at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
         at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
         at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
         at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
         at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
         at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1129)
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:687)
         at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
         at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:107)
         at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
         at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
         at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:167)
         at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:225)
         at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please reply if any one find solution on this.
    Edited by: 925203 on Apr 3, 2012 6:34 AM
    Edited by: 925203 on Apr 3, 2012 6:35 AM
    Edited by: 925203 on Apr 4, 2012 10:41 PM

    Yes, I am using custom work flow.
    I added new property for alternate text to existing content type Banner. When I try to update value for alternate text it throws error: A RepositoryException was thrown: null
    Even if i try to delete added property it throws error :
    A RepositoryException was thrown: The type Banner has existing node instances. Therefore the removal of property definition alt is not allowed.
    Is there alternate way to add property to existing content type through weblogic content management console?
    Edited by: 925203 on Apr 5, 2012 9:48 PM

Maybe you are looking for