Bear Bibeault wrote:Where's your code? What problems are you having with it?
I am able to display the folder names as hyper links using the "a href" tag.
attr.getName(object_name) gives the folder name.But when I click on the folder name it gives NullPointerException since the folder name is not accessible to the DiplayContents.jsp page.Basing on the folder name clicked I have to diplay the contents of that folder.
First, it looks as if you are still using scriptlets. Stop. Use the JSTL and EL.
Also, you are submitting directly to a JSP. No good. Your first stop on any request should be a servlet controller. In that controller you can fetch the information to display, in this case use file I/O to obtain the files and folder names, and forward to the JSP for display.