File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating jsp page on the fly and saving it

 
Alex Kravets
Ranch Hand
Posts: 476
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am creating a JSP page on a fly where user enters text and inserts images to create the page he wants. After he'd create the web page I want to be able to save the page that was created and upload it to the server. How do I go about saving a dynamic page?
thanks,
Alex
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to turn this on its head ... have you thought about simply saving the HTML fragment and including it from a standard/common JSP? Does the user have the ability to enter JSP code, or are they just typing HTML and using images? If they are using JSP constructs, don't forget that this could be a potential security risk since they can build a JSP that runs some nasty code on the server. Just some thoughts ... hope they help!
 
Alex Kravets
Ranch Hand
Posts: 476
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually they just enter heading name, locate image and text files on their PC and the JSP page creates a page on the fly. What I need to do is somehow save the html code that the JSP page had produce. User can't enter any code.
thanks,
Alex
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic