All along, I had a folder called FYP(FileSystem). And in it i had alot of JSP files.. I only created a folder called sedj and copied the two files inside. Thus, it created an error. Now, I took it out so that there is no more folder. The error message now have only...
Do I execute the servlet itself or use another JSP to call it out? And if I use jsp to call it out, how do i do it?
using <a href="http://localhost:8081/servlet/ImageServlet" content="image/gif">Start Servlet</a> ?
I'm using SunONE Studio 4 by the way.
At the Output Window, there is an error...
I only created a folder where there is no WEB-INF folder.
I created the jsp and the ImageServlet.class. But there are extra files beside there. These included:
ImageServlet (Java(tm) File (Forte(tm) For Java(tm)))
ImgeServlet.class
ImageServlet.java~
.nbattrs
displayPicture.jsp
So if I used the...
Thanks for sedj for assuring me.
I have tried to compile the whole servlet and it managed to compile successfully.
How do I ensure that it is the right URL?
Its the format of
<embed src = "http://localhost:8080/servlet/ImageServlet" content="image/gif">
hostname: localhost
port: 8080 (but when...
But I only need to store less than 100 images. What I'm trying now is to upload the picture into a folder in the server while saving the link into the database. Thus, the displaying will be much more easier as its a direct link. In this way, I have to give up the UploadBean at javazoom.net and...
After putting the codes and after running, there is a small square there. But the square is empty. No picture comes out.
Is it a better idea to save the file to disk during upload and store the link in the database. And when I need to display it, I just take the link out from the database and...
Is writing a JSP and a servlet similar?
I have never written servlets.
My purpose is just to display a picture. However, its the first time I am trying it.
What actually do we have to do in order to display the picture from the database?
Query Codes
String strSQL = "SELECT binaryfile FROM...
I need to display a picture which I have saved in a database as a BLOB. Can anyone tell me if these codes are done correctly? Now, when I run, I get no errors however, its just a blank page. How do I allow the user to see my picture file?
Im using mySQL server.
Program is Sun ONE Studio (JSP)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.