The Artima Developer Community
Sponsored Link

Java Answers Forum
Advantages/Disadvantages/Performance using Applet vs JSP

2 replies on 1 page. Most recent reply: Jul 21, 2005 11:12 AM by Gotur

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Gotur

Posts: 2
Nickname: gotur
Registered: Jul, 2005

Advantages/Disadvantages/Performance using Applet vs JSP Posted: Jul 20, 2005 9:14 AM
Reply to this message Reply
Advertisement
Can anybody answer for the following questions,
I appriciate if you answer questionwise.,,Thanks

1. Advavantages/Disadvantages/Performance in using Java Applets vs JSP's
2. If you r building a web based Product, then which is sharp edge (Applets or JSP's)
3. Can i call JSP's inside from Applet.Im going to use Applet as my homepage, then i will build application using jsp's.
4. Can i build entire product via Applet, does it have any performance issues, when product is web enabled.
5. What will be the performance issues if i use Applets.
6. I have complex form(jsp or Applet), where i have to use dynamic page changes(Adding/deleting the fields dynamically to the page), which one is edge over the other.


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Advantages/Disadvantages/Performance using Applet vs JSP Posted: Jul 20, 2005 11:28 PM
Reply to this message Reply
> Can anybody answer for the following questions,
> I appriciate if you answer questionwise.,,Thanks
>
My attempt to respond to some of the questions
> 1. Advavantages/Disadvantages/Performance in using Java
> Applets vs JSP's

Just simply keep in mind that in *this response*
what's an advantage to Applets is a disadvantage
to JSPs and vice versa (atleast the way I've
written it).

Applets Advantage:

Allow for more interactivity with the user.
E.g Table selection which is not possible with
JSP since like JSP it simply spits out HTML.
An example is if you have a JTable in an Applet
you may select a value in the JTable and have
ActionEvents responding to that selection
(not possible with HTML generated by JSP).

Disadvantage

Not all browser will automatically have Java
Applets enabled. Some actually by default require
that you manually install Java Plugins for Applets.

Another one is that Applets do not have access to
the local file system, hence connecting them
to a database for instance requires much more work
than it would in the case of JSP (Though once you
code the connectivity modules due to Java's object
oriented nature you may always recycle your code
or you'll find that with minimal modification you'll
be able to churn out connectivity code at the same
pace you develop connectivity code for JSPs.

Initial load time for Applets tends to be slower
but once loaded and all Connection Threads are
complete, you probably won't notice the difference.

One other Advantage (this is a matter of opinion):

I find Applets much more appealing visually (despite
their User Interacticity options) than regular HTML.

> 2. If you r building a web based Product, then which is
> sharp edge (Applets or JSP's)

I have no clue what this means.

> 3. Can i call JSP's inside from Applet.Im going to use
> Applet as my homepage, then i will build application using
> jsp's.

Never done it before, but they can both make use of
Java classes so I don't see why not.

> 4. Can i build entire product via Applet, does it have any
> performance issues, when product is web enabled.

Once again, initial load up time for an Applet is
noticably slow especially if you have Database connectivity
modules involved coz it will have to first connect to
a Servlet via Http which then connects to a Database.
General loading of the AWT or Swing stuff is also notably
slow. Once its fired up though, in my experience, it
zooms right through.

> 5. What will be the performance issues if i use Applets.

This really sounds the same as question 4

> 6. I have complex form(jsp or Applet), where i have to use
> dynamic page changes(Adding/deleting the fields
> dynamically to the page), which one is edge over the other.

You'll be the judge of the tradeoffs pending on what has
been discussed with regards to User interaction, Loadup
time, difficulty in coding one over the other.

I hope this helps.

Good luck.

One,
Spike

Gotur

Posts: 2
Nickname: gotur
Registered: Jul, 2005

Re: Advantages/Disadvantages/Performance using Applet vs JSP Posted: Jul 21, 2005 11:12 AM
Reply to this message Reply
> > Can anybody answer for the following questions,
> > I appriciate if you answer questionwise.,,Thanks
> >
> My attempt to respond to some of the questions
> > 1. Advavantages/Disadvantages/Performance in using Java
> > Applets vs JSP's
>
> Just simply keep in mind that in *this response*
> what's an advantage to Applets is a disadvantage
> to JSPs and vice versa (atleast the way I've
> written it).
>
> Applets Advantage:
>
> Allow for more interactivity with the user.
> E.g Table selection which is not possible with
> JSP since like JSP it simply spits out HTML.
> An example is if you have a JTable in an Applet
> you may select a value in the JTable and have
> ActionEvents responding to that selection
> (not possible with HTML generated by JSP).
>
> Disadvantage
>
> Not all browser will automatically have Java
> Applets enabled. Some actually by default require
> that you manually install Java Plugins for Applets.
>
> Another one is that Applets do not have access to
> the local file system, hence connecting them
> to a database for instance requires much more work
> than it would in the case of JSP (Though once you
> code the connectivity modules due to Java's object
> oriented nature you may always recycle your code
> or you'll find that with minimal modification you'll
> be able to churn out connectivity code at the same
> pace you develop connectivity code for JSPs.
>
> Initial load time for Applets tends to be slower
> but once loaded and all Connection Threads are
> complete, you probably won't notice the difference.
>
> One other Advantage (this is a matter of opinion):
>
> I find Applets much more appealing visually (despite
> their User Interacticity options) than regular HTML.
>
> > 2. If you r building a web based Product, then which is
> > sharp edge (Applets or JSP's)
>
> I have no clue what this means.
>
> > 3. Can i call JSP's inside from Applet.Im going to use
> > Applet as my homepage, then i will build application
> using
> > jsp's.
>
> Never done it before, but they can both make use of
> Java classes so I don't see why not.
>
> > 4. Can i build entire product via Applet, does it have
> any
> > performance issues, when product is web enabled.
>
> Once again, initial load up time for an Applet is
> noticably slow especially if you have Database
> connectivity
> modules involved coz it will have to first connect to
> a Servlet via Http which then connects to a Database.
> General loading of the AWT or Swing stuff is also notably
> slow. Once its fired up though, in my experience, it
> zooms right through.
>
> > 5. What will be the performance issues if i use
> Applets.
>
> This really sounds the same as question 4
>
> > 6. I have complex form(jsp or Applet), where i have to
> use
> > dynamic page changes(Adding/deleting the fields
> > dynamically to the page), which one is edge over the
> other.
>
> You'll be the judge of the tradeoffs pending on what has
> been discussed with regards to User interaction, Loadup
> time, difficulty in coding one over the other.
>
> I hope this helps.
>
> Good luck.
>
> One,
> Spike

Hi,
I got lot of information regarding this,
I really appriciate for the reply.
Thanks a lot

Flat View: This topic has 2 replies on 1 page
Topic: ThreadPoolExecutor and ArrayBlockingQueue Previous Topic   Next Topic Topic: Thread,  Vector, Inheritance Problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use