Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to show the output image (using java) as resultant image in webpage

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    21
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to show the output image (using java) as resultant image in webpage

    whats wrong with my coding? I have process button in my web page by clicking the process button the java coding run in back-end and show the output as resultant image in the web page,here is my coding in jsp and java using netbeans and Apache tomcat server,index.jsp call response1.jsp, and then repsonse1.jsp call the java package ready
    index.jsp
    <form name="Name Input Form"
    action="response1.jsp"><input type="submit" value="Process" /></form>
    response1.jsp
    <body>
    <jsp:useBean id="mybean" scope="session" class="ready.ImageJPanel" />
    <jsp:setProperty name="mybean" property="Image" value="" />
    <p> Resultant,<jsp:getProperty name="mybean" property="Image" /> </p>
    </body>
    java code is here(Image processing tutorial)



    How to solve this problem ,by clicking the process button it showing error

    HTTP Status 404 - /Image/jsp.


  2. #2
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: How to show the output image (using java) as resultant image in webpage

    Quote Originally Posted by Mumpy Zinu View Post
    I have process button in my web page by clicking the process button the java coding run in back-end and show the output as resultant image in the web page
    To show an image, you must output in the HTML page the classic <img> tag ... there's nothing more at this level.
    The real important point is the url of the image, that can be:
    - a fixed url to a file on the server, where you write the image file in another moment (for example when the HTML page is requested).
    - a url to some "dynamic" resource (typically a Servlet, or other "action" depending on the used framework) that generates the image stream "on the fly".
    Andrea, www.andbin.net SCJP 5 (91%) SCWCD 5 (94%)

    Useful links for Java beginners My new project Java Examples on Google Code

Similar Threads

  1. [SOLVED] JButton Image does not show. on background image.
    By chengnetz in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 23rd, 2014, 12:06 PM
  2. Selecting and dragging a image from multiple image in Java Applet
    By CY5 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 26th, 2013, 03:44 PM
  3. How to show an image data stored in database in jsf?
    By JajatiKesharibehera in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 26th, 2012, 02:33 AM
  4. Trying to show change on Image based on pixel values
    By javaGurl in forum Algorithms & Recursion
    Replies: 1
    Last Post: September 20th, 2011, 04:49 PM
  5. Beginner: Show Image in Label when Results Show Up
    By Big Bundy in forum Java Theory & Questions
    Replies: 3
    Last Post: April 4th, 2011, 03:43 PM