Sir can you please send me an example to upload an image to the server (with user defined file name and display message if name exist) at specific folder "images" and save its path to the mysql database. And again display the images uploaded on the server folder by using the path which is stored in database.
Sir i am able to upload image on server specific folder or the image directly in database in bolb datatype but i become failed to store its path in database and fetch the uploaded image using the path in database. So please guide me.
Ranjan

grab some books. We're not here to do your homework for you.

commented: so many people come forward to help, he's not asking You particularly. Just don't reply to any random post, If can't help. #BadMouth +0

Thank you so much this code is really working and it is very helpful....

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="s"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:form>
        <table align="center">
            <tr style="height: 60px">
                <td style="width: 100px;" align="left">File Id</td>
                <td style="width: 100px;" align="left">File Name</td>
                <td style="width: 100px;" align="right">File</td>
            </tr>
            <c:forEach var="file" items="${allfiles}">
                <tr style="height: 44px; width: 522px;">

                    <td align="left">${file.id}</td>
                    <td align="left">${file.filename}</td>
                    <td align="right"><img src="/images/imagesCA6XMXN1.jpg"
                        height="150px" width="120px"></td>
                </tr>
            </c:forEach>
        </table>
    </s:form>
</body>
</html>

This is my jsp page through which i just try to print more images from my Server \WebContent\images folder but the images are not getting print into jsp page

Help me to Overcome this

Mr/Ms Jwenting, so many people come forward to help, he's not asking You particularly. Just don't reply to any random post, I hope, you don't come to this forum for timepass. Such forums are there to help developers.
Here all, please keep asking.
Learn and share because Sharing is Caring !

You do know that you are replying to an eight year old post, right?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.