Originally posted by narasimharao konjeti:
Dear balaji, I did that it is working fine. But my problem, I have to take the path dynamically.
and i have to store the images in the server location. it will be change server to server..
thanks in advance
cheers
Yes! you can get the path dynamically,
by using request.getContextPath() or
getServletContext().getRealPath("")
the former will give you the "/examples" as the path and the latter will give "C:\tomcat\webapps\examples\" as outputs for a windows system, it will also give "proper" paths for other operating systems.
Have fun.
FYI I got this from SnoopServlet.java under examples directory.