• Post Reply Bookmark Topic Watch Topic
  • New Topic

displaying file in iframe

 
Amol Juvatkar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

in our project, my teammate is reading email and storing body of it in form of htm file, somewhere on disk like d:/body_of_emails/a001.htm.

I have to display this htm file on jsp page which is running on tomcat server along with other details to user.

Using iframe I can achieve this, only if those htm files are stored in context of project.
But storing huge amount of htm files daily inside tomcat is not feasible.

Kindly tell me how can I display those files.

thanks
Amol Juvatkar
 
Satish Chilukuri
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way would be to have a servlet read the htm file from disk and write it to the ServletOuputStream. Then point your iframe src to this servlet.
 
Amol Juvatkar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great it worked !
Thanks Satish.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!