This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: about file path
 
Similar Threads
Path in downloading link
How to Create a file on the Client Side
How to Create a file on the Client Side
what is the diference...
including content from webserver in JSP