• Post Reply Bookmark Topic Watch Topic
  • New Topic

Create a .html file from JSP at Web Server

 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to create a .html file from output of a JSP at web server.
Kindly help as it is required to save the .html file and later send it as attachment in email or just send this file to user.
Waiting for expert advice.
Thanks in advance.
Santosh
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cast the JspWriter object (out) to a FileWriter object on the very first line of the jsp file.
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new to JSP. Can you give an example how to do this ?
Thanks,
Santosh
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anybody there ???
[ May 12, 2004: Message edited by: S Santosh Kumar ]
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While typecasting JspWriter to FileWriter, system gives casting error.
I've tried this with PrintWriter,Writer,BufferWriter... but no success.
Kindly explain how to typecast it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!