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
<form name="Name Input Form"
action="response1.jsp"><input type="submit" value="Process" /></form>
<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>
java code is here(http://www.javaprogrammingforums.com...-tutorial.html)
How to solve this problem ,by clicking the process button it showing error
HTTP Status 404 - /Image/jsp.
Re: How to show the output image (using java) as resultant image in webpage
To show an image, you must output in the HTML page the classic <img> tag ... there's nothing more at this level.
Originally Posted by Mumpy Zinu
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".