FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

jsp query

 


anmol
i've a jsp file that displays some textarea ,,, now i want to copy the value of this text area onto the clients machine
how to do this?
anmol
how do i do this
coz if i use jsp it'l write the file on the server side
java script has limited file handlin capabilities
Stubru Freak
anmol wrote:
how do i do this
coz if i use jsp it'l write the file on the server side
java script has limited file handlin capabilities


You can ask the client. You really can't do more. That wouldn't be secure.
anmol
ya i'l ask the client to click on a button(called export)
after clickin some client side script comes into bein to write contents of the text area onto the clients machine itself .

now wat script to use ? n how to do ?
Stubru Freak
I don't know a lot of jsp, but basically there's two choices:

Store the file server-side, then make a link for the client to download it.
Make the file server-side, and send it to the client as the output response to the form he clicked.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.