Link to home
Start Free TrialLog in
Avatar of nick5454
nick5454

asked on

Using Applets

In the J2EE architecture it says to use applets for designated areas within the JSP page to access business components. My instructor says to use the servlet instead. That contradicts the J2EE specifications. WHich is the best.

Applets take a while the first time. But what is the correct practice.

Thanks,
Nick
Avatar of cheekycj
cheekycj
Flag of United States of America image

I am not sure what the J2EE spec explicitly says but in my experience, we have always used Servlets to access Business Components/Objects.  Following the MVC design.

CJ
Avatar of Mick Barry
Applets don't really have access to your business components in J2EE. Applets run on the client, while your business components run on the server.
Can you point to a reference making this recomendation to use applets and we can try to explain what they mean.
Avatar of nick5454
nick5454

ASKER

Well its in the Simplified J2EE specs. But, I am going to use the applets for animation and I guess thats the real purpose for banners and things like that.

My last question then is do I create a class that inherits the servlett class that calls and EJB?

And are java beans on a jsp page common practice or do I stay away?
ASKER CERTIFIED SOLUTION
Avatar of cheekycj
cheekycj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
JavaBeans are most useful in a jsp page, as their are tags designed to access them.
They don't have any real advantage over other classes in a servlet.
Thanks for the code I really appreciate both of your answers

nick
Thank you for the "A" and good luck.

CJ