473,699 Members | 2,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing html to a file using java?

19 New Member
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 2429
Rabbit
12,516 Recognized Expert Moderator MVP
That depends, are you talking about java or javascript? Client or server?
Feb 15 '12 #2
mcelrob5
19 New Member
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
vishalBhuva
1 New Member
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
2913
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 a similar pattern? ex: I have a field {Token = LoanNumber} in the html file. I just need to replace Loan Number with some text by finding the pattern "{Token=". Any suggestions are welcome. Thanks. -------------------------------- From: Sam Kon...
0
254
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
2843
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. could anybody help me out ? I 'll be very thankful to him. thanks with regards Baljeet Singh
0
2267
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 restore Ms Access table using VB code - open HTML file using VB code Is there anyone can help me please? It's urgent. Thanks before
2
17463
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 database into a text file
2
1445
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 the name of the last person to run the application, this information should be retrieved from a file. After welcoming the users, asks them for their name and saves it to the file.
1
2702
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 Address Roll No. City Then how to add this data column by column into the excel file? Please help me. It's urgent.
10
13911
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
1170
by: Sary | last post by:
hi, I 'm working with ireport-3.7.1.How to get the .jrxml file using java?
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9187
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8936
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8894
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2361
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.