Can't paste OS clipboard into Web ORACLE FORM [message #317982] |
Mon, 05 May 2008 03:46 |
pc131
Messages: 36 Registered: May 2006
|
Member |
|
|
I've faced an issue of pasting OS clipboard to java applet (Oracle Form 6i exacltly but served by Java runtime in web browser). When I use Microsoft Java in web browser it allows me to paste the clipboard of operating system into the oracle forms text area (this form is as I stated before java applet in IE browser window).
But when I use Sun Java in web browser I cannot paste anything from
operating system into the applet - applet can't see OS clipboard. I've found some articles about security policy of Java appltes (java.policy file). But so far none of soultion worked for me.
If any of You knows the solution of found similar problem(pasting OS clipboard into java applet) and worked it out, please let me know.
Regards,
Tom
[Updated on: Mon, 05 May 2008 03:52] Report message to a moderator
|
|
|
|
|
FIXED!! - Can't paste OS clipboard into Web ORACLE FORM [message #318583 is a reply to message #318462] |
Wed, 07 May 2008 03:52 |
pc131
Messages: 36 Registered: May 2006
|
Member |
|
|
ALL!!!!
I got solution not only for Forms but for all JAVA APPLETS!
Place in your home directory i.e. "C:\Documents and Settings\djmartin" file named .java.policy - remember about dot before word "java"
Its contents should look like this:
grant codeBase "http://forms_server/-" {
permission java.awt.AWTPermission "accessClipboard";
permission java.awt.AWTPermission "accessEventQueue";
permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
};
This will allow You to copy text from Notepad and paste it to text field in Forms or any Java applets in this case served from http://forms_server/
Hope it helps all of You!
|
|
|
|
|
Re: Can't paste OS clipboard into Web ORACLE FORM [message #318835 is a reply to message #318767] |
Thu, 08 May 2008 03:03 |
pc131
Messages: 36 Registered: May 2006
|
Member |
|
|
No problem, You always are willing to help here, so I share my knowledge!
I was struggling heavily with that issue, because what i was missing was using PASTE_REGION method in Forms. I prepared quite complex Excel Macro that was generating scrambled data for usage then in Forms. Macro exported it to clipboard, but then it came out that Sun Java (MS Java allowed clipboard operation) wouldn't allow clipboard operation. So i was diggind through many forums and finally found some tips in Sun Java Bug forums.
I feel big relief now!
Regards,
Tom
|
|
|