Copy to Clipboard with dynamic data

They have: 5,633 posts

Joined: Jan 1970

I'm trying to write a method that will copy specific text and dynamic data from a page to the clipboard, so that is may be pasted somewhere. I'm using JSP, and I have viewbean java objects. In order to get this data (for example, the current date) I don't know where to write the Date class (if I need to at all) or how to call the copy function and have it be able to include this information. Any help you can give me would be greatly appreciated.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

No idea how applets work or how to implement this. One way to do the copying part is to call a Javascript function on the client-side. Have a look at some of these scripts if they're any help:

http://search.freefind.com/find.html?id=6299074&pageid=r&mode=ALL&n=0&query=copy+clipboard

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.