Hi co-programmers,

We're currently doing a simple conversion of a jsp to java format. I think we we're able to somehow force our way for a java program to hold our jsp program, but unfortunately we are having a slight problem.

We're getting this exception:

Exception in thread "main" javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "ActiveXObject" is not defined. (<Unknown source>#1) in <Unknown source> at line number 1

Hope for your replies. Cheers!

Recommended Answers

All 3 Replies

what exactly are you trying to do?
put all your snippets in servlets, or create a Swing (or other GUI-package) based desktop client?

You will need to find library that is able to handle ActiveX objects, nevertheless sometimes it is not good idea to transfer everything as it is. Try to think over what is that component used for and see if you really need it. Refactoring (or in this case rebuild) is an opportunity to re-evaluate structure of existing code, necessity of functions some blocks of code, code clearness and generally project functionality and being able to easy to test it with JUnit etc

Okay guys! Thanks for you replies. We'll look into this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.