• Post Reply Bookmark Topic Watch Topic
  • New Topic

read a file at local Client  RSS feed

 
abinash das
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My web application needs to read a file in the local system.
What kind of approach should i go for.
Using Server as Tomcat 4.1

any sample code will be easier to incorporate.

Thanks in advance
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet's can only deal with stuff sent from the client. So you need to get the client to upload the file. Have a search through this forum for "upload file" and you'll find loads of examples.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also an entry in the JSP FAQ regarding file uploading.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!