Writing html to a file using java?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcelrob5
    New Member
    • Jun 2010
    • 19

    Writing html to a file using java?

    I have a JSP that while being used holds the current state of an audit. What I want is to be able to grab the current state of this html and write it to a file so that the progress being made to the audit is saved for future progress. How can this be done using Java?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    That depends, are you talking about java or javascript? Client or server?

    Comment

    • mcelrob5
      New Member
      • Jun 2010
      • 19

      #3
      I was talking about storing it in a text file on the host. however, I have decided to go a new route and am attempting to store it in a database. I have another question with an issue i am having in this area though: http://bytes.com/topic/javascript/an...-parent-window

      Comment

      • vishalBhuva
        New Member
        • Feb 2012
        • 1

        #4
        Hi dude,
        For your stuff you need to work in javascript..
        1) collect data from your html
        2a) create dynamic form, store data to it and trigger submitevent of it form then at server side get data and write to your text file.
        2b) make ajax call then at server side get data and write to your text file



        choose your way.

        --
        V

        Comment

        Working...