java - How to call applet from web to read excel file and insert data to oracle database? -


i wrote java class read excel file , dump data oracle database. needs reference apache poi libraries( 8 jar files.) program works fine in command line.

now want call java program oracle apex. make jar file class (extends japplet), put jar file on web server, , want call this:

<applet code="myapplet.class" width=200 height=50 archive="http://.../myapplet.jar">       <param name="filename" value="test.xlsx">       </applet> 

i open page, loads jar file , print in java console :

basic: applet loaded. basic: applet resized , added parent container basic: perf: appletexecutionrunnable - applet.init() begin ; jvmlaunch dt 902650 us,         plugininit dt 5650085646 us, totaltime: 5650988296 basic: applet initialized basic: starting applet basic: completed perf rollup basic: applet made visible basic: applet started basic: told clients applet started 

then check database table, data not dumped in. couldn't find out problem, no errors printed. what's problem ?

  1. can applet connect oracle database?
  2. is correct way pass parameter applet?
  3. must sign jar file?

to make succinct: how call applet web read excel file , insert data oracle database ? environment : jdk 1.6 , oracle 10.2.0.4

can applet connect oracle database?

yes.

is correct way pass parameter applet?

yes. though ideally deploy applet using deployment toolkit script.

must sign jar file?

it not vital if applet 'phoning home' same server in order connect db. vital if db on server.

having said that, due security improvements in 7u21, unsigned applet going cause scary dialogs.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -