Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes about file path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "about file path" Watch "about file path" New topic
Author

about file path

siva prakash
Ranch Hand

Joined: Aug 24, 2004
Posts: 80
Hi all,

here iam browsing a file at a html page , after submission jsp page will be called , in which some logic will be there , which will do something of data present in file .

but while retrieving request.getParameter() only the file name is coming but not full path of file ,

how to over come this problem


its really urgent

pls help me

siva
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
in your jsp, use

application.getRealPath("/filename")


Sarath Mohan
 
Have you checked out Aspose?
 
subject: about file path
 
jQuery in Action, 3rd edition