Saturday, 5 September 2015

How to get the actual path of servlet in server?

We can use following code snippet to get the actual path of the servlet in file system.
getServletContext().getRealPath(request.getServletPath())

No comments:

Post a Comment