I have a web page(jsp) page which has a button save.When the user clicks save i should save the rendered HTML to a blob in the database.In all the file uploads i have done so far user will be providing the page on his local machine to upload.But here i have to save the current rendered page he is in.Please help me out.Any suggestions are welcome.Thanks in advance..
Thanks and Regards, Purna Chandra Rao CH. [ March 27, 2007: Message edited by: Purna Chandra Rao ]
In an effort to help you get the most from our forums, we've compiled a list of tips for asking questions here. You can find the list in our FAQ section here. In particular please see: EaseUp to find out why adding the word "URGENT" to your post or subject line usually slows down or stops responses to your question.
You can fix your subject line by clicking on the icon in the top post of this thread.
Again, welcome to JavaRanch and good-luck with your question. -Ben
No, we're not really that mean-spirited, but - well, the EaseUp FAQ says it all.
an HTML page is not something that gets infinitely transferred back and forth between the client and the server. There's no straightforward way to capture character-for-character the HTML that was sent out to the user on a return trip, much less pixel-for-pixel on how that particular browser rendered the page.
When you present an HTML form, what is sent to the server when the user clicks Submit is either a simple URL string or an encoded HTTP form POST data stream. Plus various headers and other types of overhead. There's a whole series of documents known as the "RFC"s that detail exactly how that data stream is formed. I had the questionable good fortune to have to have tried to make sense of them (urgently) 2 weeks ago when I did a special file upload project of my own.
Anything capable of doing more than that is not a standard part of a web browser. In fact, it's probably a virus.
An IDE is no substitute for an Intelligent Developer.