ashish said:
You're welcome - could I get you to post in-line as I do?
Yes it is going to be a Network Management System. We can enable Java
Script if it is not much resource consuming.
Unfortunately, you cannot do any such thing, that is the problem.
JavaScript is something the end-users's browser either has enabled
or has disabled (though some browsers and screen readers do not support
JS at all).
You at the server end can take measures to check if JS is enabled
and provide a 'Sorry this app requires JS' message or such, but you
simply cannot force it on the end user. (Same with Java itself).
If the user has JS enabled, you're in luck.
It is not a resource hog, it is very quick and lightweight (the JS
in a page usually needs to wait for the JVM to load in applet/JS
interactions).
If I have option to go either for "Swing based stand alone application"
or "JSP based Web application", which one is going to be more efficient
in terms of performance/ resource consumption (CPU/ memory etc.) ?
First - if I had the option of going either stand alone application or
web based application, I would definitely choose stand-alone.
There is a much richer set of GUI components available.
A stand alone app. also opens up new opportunities such
as restoring the application state at start-up, Drag-n-Drop,
multi-threading of the GUI, custom/animated components,
breaking you out of the linear model of web applications...
I would only consider the web-based app. if Java could not be
guaranteed on the target deployment machines.
The web-based application that requires a browser with
no Java is relatively resource light. The Swing application
might be more weighty with the JVM, but not significantly so
(not on any PC built within the last 5-6 years).
Anybody had any good/ bad experiences ?
In terms of convenience there is no doubt, Web based application is a
better choice.
Convenience for the end user? Sure. Not so much for the
developer - coding for web based GUI involves accounting
for browser incompatibilities. By far the most difficult thing
to get right X-browser/X-plat is look and feel - which is a
matter Sun has devoted a lot of attention to.
Andrew T.