• Post Reply Bookmark Topic Watch Topic
  • New Topic

Open a document (doc,pdf,html,docx,ppt,txt,xls) through browser

 
Ramasubramaniam Rathinasubbu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

how can i open my storage document through servlet.

document at /D:/storage/

how can i open the document through servlet(browser)

 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can try this way
1)make an entry in web.xml specifying the registration of mime type tomcat container will hande it ..



2) just map the servlet to the pdf like this

now redirect to this servlet will show you the pdf ....

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!