Brett Zamir

Greenhorn
+ Follow
since Jul 19, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Brett Zamir

Thanks, Les...

How cumbersome would it be to package some kind of "light" server with a distribution?
16 years ago
Thanks, Les...

How cumbersome would it be to package some kind of "light" server with a distribution?
16 years ago
Thanks, Svend...

Yes, that basically was my question...

But I wonder which type of Presentation Layer I should be using... Is JSP+HTML usable as the Presentation Layer in a standalone application? I'd like to be able to easily migrate not only the Java code, but also the Presentation layer.

thanks,
Brett
16 years ago
Thanks, Svend...

Yes, that basically was my question...

But I wonder which type of Presentation Layer I should be using... Is JSP+HTML usable as the Presentation Layer in a standalone application? I'd like to be able to easily migrate not only the Java code, but also the Presentation layer.

thanks,
Brett
16 years ago
Hello,

I have two questions:

1) Being new to Java, I haven't been able to get a clear picture on whether Java, by being able to be run on the server and as standalone client apps, could easily be migrated from being a server app into being a client app or vice versa (obviously assuming the nature of the app could lend itself to that). For example, can one use JSP code to build a client-side interface (that doesn't necessarily query a remote server but which can be easily deployed and downloaded by Joe or Jane user) and then write a servlet which is similar to the client-side Java code and can also harness the JSP? I want to use the most portable option (specifically to make a text browsing app). I like using JSP, if that is possible, as by using HTML, it is also closer to being portable if I ever switch from Java.

2) While this is perhaps more of a Mozilla question, I haven't been able to get an answer, and this definitely does impinge on Java, so, here goes...

Mozilla apps can use LiveConnect technology to allow Javascript calls to be translated into Java.

However, while I'm able to get the built-in Java classes working, I couldn't get the following to work.

When I try to use a Berkeley DB XML class (which is in my classpath and
which I can access from NetBeans without problem) in a XUL document, I get a
TypeError in Firefox that XmlManager() is not a constructor:

var xmlman = new Packages.com.sleepycat.dbxml.XmlManager();

Any idea how to make sure these Packages become accessible to Mozilla? As far as I can tell, this should work according to http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview:JavaScript_to_Java_Communication

I also couldn't figure out how to try to load the classes dynamically
using the code at the bottom of
http://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions and I definitely want to make sure I can at least get things working with LiveConnect before possibly trying the Java Firefox Extension approach.

thanks,
Brett
16 years ago
Hello,

I have two questions:

1) Being new to Java, I haven't been able to get a clear picture on whether Java, by being able to be run on the server and as standalone client apps, could easily be migrated from being a server app into being a client app or vice versa (obviously assuming the nature of the app could lend itself to that). For example, can one use JSP code to build a client-side interface (that doesn't necessarily query a remote server but which can be easily deployed and downloaded by Joe or Jane user) and then write a servlet which is similar to the client-side Java code and can also harness the JSP? I want to use the most portable option (specifically to make a text browsing app). I like using JSP, if that is possible, as by using HTML, it is also closer to being portable if I ever switch from Java.

2) While this is perhaps more of a Mozilla question, I haven't been able to get an answer, and this definitely does impinge on Java, so, here goes...

Mozilla apps can use LiveConnect technology to allow Javascript calls to be translated into Java.

However, while I'm able to get the built-in Java classes working, I couldn't get the following to work.

When I try to use a Berkeley DB XML class (which is in my classpath and
which I can access from NetBeans without problem) in a XUL document, I get a
TypeError in Firefox that XmlManager() is not a constructor:

var xmlman = new Packages.com.sleepycat.dbxml.XmlManager();

Any idea how to make sure these Packages become accessible to Mozilla? As far as I can tell, this should work according to http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview:JavaScript_to_Java_Communication

I also couldn't figure out how to try to load the classes dynamically
using the code at the bottom of
http://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions and I definitely want to make sure I can at least get things working with LiveConnect before possibly trying the Java Firefox Extension approach.

thanks,
Brett
16 years ago