aspose file tools*
The moose likes JSP and the fly likes file Uploading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "file Uploading" Watch "file Uploading" New topic
Author

file Uploading

Purna Chandra Rao
Greenhorn

Joined: Feb 06, 2006
Posts: 23
Hi ranchers,

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 ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Purna Chandra Rao,
Welcome to JavaRanch!

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

Have we let him suffer long enough?

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file Uploading