We have a web application built on java/jsp technology. This web application generates most of the client side files at the initial launching time.
We need add a button saying "DOWNLOAD" in the web application, when user click the button, we captures all the current client side content and saved it to user's local disk. Since it has multiple frames, we will need capture the source for all the frames.
In our case, all the client html pages are being generated at the very beginning when the user launches this jsp application. We only need access backend server at the initial launch time, then we do not need the server any more. So, that is why we like to run it offline as a pure html collections application if the user downloads it.
I think I need explain my situation more specifically.
I am working on a jsp based course player. Whenever user login or logout, we keep the track of the status of the course user accessed. So we know how many items the user already visisted, and we bring the user back to the previous page he/she last visited when he/she log back in.
I know there are some commercial software, like Htmlsource Viewer can catch all the client side source when you move the mouse to IE browser. But I just do not know how to do that by using a button at our web application. Is there a way to go back to server side and get all the source initially generated for this course when user click the "download" button?
Setup a filter which will capture all user's request responses and store them in a temporary storage. When user selected DOWNLOAD, then zip the storage and send to the user. You may have something on client side as offline player or something like that. We use TJWS for that. Live search for it.
I am now using a html form to post back all the frames' html source from client side to a servlet, and then on the server side, I write to a file/folder/zip to let user to download. Is this a good solution?
BTW, Patel, we are using SCORM for our course player.
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad: