473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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?
Feb 15 '12 #1
3 2400
Rabbit
12,516 Expert Mod 8TB
That depends, are you talking about java or javascript? Client or server?
Feb 15 '12 #2
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
Feb 21 '12 #3
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
Feb 22 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sam Kon via .NET 247 | last post by:
Can any one of you let me know, how can I replace a pattern in an html file using C#? I have the contents of the html file stored in a string. I just need to replace some of the elements which have...
0
by: Dhanasankar S via DotNetMonster.com | last post by:
Hai friends, Please give me an idea to read the content in the body part of a HTML file from another HTML file using Javascript. -- Message posted via http://www.dotnetmonster.com
2
by: Baljeet Singh | last post by:
hi, I am Baljeet Singh, and i have recently started codng in java. I want to parse an given HTML file in Java for finding HTML elements by Name, tagID, get root element, find siblings etc. ...
0
by: egp | last post by:
Hi guys, I have a database using Ms Access 2003 connected to VB6 using ADODB Connection and I want to know how to: - display Ms Access report in VB using VB code then print it out - backup and...
2
by: asenthil | last post by:
Hai, i'm a beginner to java... just now i had tried to read and write files using java... and then i had tried to connect a database using jdbc... now i want to export the data's from a...
2
by: yaveus | last post by:
Hi?I am studying java on my own and got stack on how to read and post data to a file using java e.g how will you solve this: A simple application that, when run, Welcomes the users and tells them...
1
by: SagarDoke | last post by:
I have a txt file. I want to add the data from that file into the excel file using java. That data is delimited by spaces as follows: 1 Sagar Doke Address Roll No. City 2 ABC ...
10
chandru8
by: chandru8 | last post by:
Hi to all Can any one explain me to read data from an html file. iam have written the code to read an html file using file system object, but it reading the source code. thanks to all
0
by: Sary | last post by:
hi, I 'm working with ireport-3.7.1.How to get the .jrxml file using java?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.