Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about file path

 
siva prakash
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your jsp, use

application.getRealPath("/filename")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic