I am new to Struts.
I want to display image on JSP page and I am using Struts2 framework.
I have uploaded the image in database.
the table is ---- filepool
- id as primary key, integer
- filename longblob data type
now i have a file imageUpload.jsp
there is one action class UploadProjectFileDB.java having attribute
private File file and its setter method
and in the execute method i have made database connection and it uploads the file to table. and return success.
my struts.xml file
now i want to display this image in the uploadDone.jsp
and i have no idea how to display this image.
In brief can you please tell me how to display an image from the database.