List Info

Thread: A serious doubt




A serious doubt
user name
2006-03-30 10:42:43
Hi friends,
 
Its been a long time i'm mailing.
 
Well this was a serious doubt and i just couldn't find anything on the web which would exactly clear the doubt.
 
What is the difference between a servlet and an applet?
 
I got few answers saying that applets have GUI and are client side based.
 
Database connectivity is acheived even in applets. Then what is the real need of the servlet technology to applet.
 
Kindly reply at the earliest
 
Thank you
 
with luv
Sakthivel.R

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java Family" group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

A serious doubt
user name
2006-04-02 08:56:39

I've never worked with applets, so its difficult to
compare.
My experience with servlets is that I've made some small
web
applications
using servlets. The servlet was to me the controller like
you should
use it
in the MVC or Model-View-Controller design pattern. This
pattern
divides the
work in 3 parts : the View is the collection of the JSP's
or Java
Server Pages.
A JSP is like an HTML-page with javacode in it.
The Model is the collection of Javabeans.
And the Controller takes care of it all : the controller
(read servlet)
accepts
the requests, and decides which response should be given.
Besides the MVD you've got the DAO's or Data Access
Objects.
The DAO is a class which takes care of connecting to the
database and
putting the information of the database inside the the
objects.

A servlet can do all of these functions (connecting to DB,
making
objects, showing information in HTML page)
on its own. The thing about servlets is that you can decide
to divide
the work as is
written in the MVC design pattern. You end up with a web
application
that is much easier
to maintain.

Compare this to applets : I'm sure applets can connect to a
database.
But can they leave all the work to other classes, like
JSP's, DAO's ?
If not, then you've got your answer. If you want to follow
the MVC,
use servlets. If it does not matter, you can choose.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Java Family" group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to
Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

A serious doubt
user name
2006-04-03 09:37:17
hi,

In simple words , Applet and servlet are both java code
only.
The applet will execute from the client side after
downloaded in the
browser.
The servlet will execute the java code in server side and
outputs the
HTML which is downloaded to the Client browser.
If you are still in doubt , i can give you more explanation.

Cheers,
Ravi.
Sakthivel R wrote:
> Hi friends,
>
> Its been a long time i'm mailing.
>
> Well this was a serious doubt and i just couldn't find
anything on the web
> which would exactly clear the doubt.
>
> *What is the difference between a servlet and an
applet?*
>
> I got few answers saying that applets have GUI and are
client side based.
>
> *Database connectivity is acheived even in applets.
Then what is the real
> need of the servlet technology* *to applet*.
>
> Kindly reply at the earliest
>
> Thank you
>
> with luv
> Sakthivel.R
>
> ------=_Part_2643_21475455.1143715363432
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 780
>
> <div>Hi friends, </div>
> <div>&nbsp;</div>
> <div>Its been a long time i'm
mailing.</div>
> <div>&nbsp;</div>
> <div>Well this was a serious doubt and i just
couldn't find anything on the web which would exactly clear
the doubt.</div>
> <div>&nbsp;</div>
> <div><strong>What is the difference between
a servlet and an applet?</strong></div>
> <div>&nbsp;</div>
> <div>I got few answers saying that applets have
GUI and are client side based.</div>
> <div>&nbsp;</div>
> <div><strong>Database connectivity is
acheived even in applets. Then what is the real need of the
servlet technology</strong> <strong>to
applet</strong>.</div>
> <div>&nbsp;</div>
> <div>Kindly reply at the earliest</div>
> <div>&nbsp;</div>
> <div>Thank you</div>
> <div>&nbsp;</div>
> <div>with luv</div>
> <div>Sakthivel.R</div>
> 
> ------=_Part_2643_21475455.1143715363432--


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Java Family" group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to
Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

A serious doubt
user name
2006-04-04 08:47:56
Hi,  friends I think so i have got few insights with both of ur replies.
 
What i feel is that servlets respond to clients across http whereas applets dont they are just programs that can be embedded in a web page.
&nbsp;
Have I come closer to the answer. Kindly reply
&nbsp;
with luv
Sakthi

 
On 4/3/06, Ravi <sify.com">nvn_ravisify.com&gt; wrote:

hi,

In simple words , Applet and servlet are both java code only.
The applet will execute from the client side after downloaded in the
browser.
The servlet will execute the java code in server side and outputs the
HTML which is downloaded to the Client browser.
If you are still in doubt , i can give you more explanation.

Cheers,
Ravi.
Sakthivel R wrote:
>; Hi friends,
&gt;
> Its been a long time i'm mailing.
&gt;
> Well this was a serious doubt and i just couldn't find anything on the web
> which would exactly clear the doubt.
&gt;
> *What is the difference between a servlet and an applet?*
&gt;
> I got few answers saying that applets have GUI and are client side based.
>;
> *Database connectivity is acheived even in applets. Then what is the real
> need of the servlet technology* *to applet*.
&gt;
> Kindly reply at the earliest
&gt;
> Thank you
>
&gt; with luv
> Sakthivel.R
>
> ------=_Part_2643_21475455.1143715363432
&gt; Content-Type: text/html; charset=ISO-8859-1
&gt; Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 780
>
&gt; <div>;Hi friends, </div&gt;
> <div>;&nbsp;</div>;
> <div>;Its been a long time i'm mailing.&lt;/div>
> <div>;&nbsp;</div>;
> <div>;Well this was a serious doubt and i just couldn't find anything on the web which would exactly clear the doubt.</div>
&gt; <div>;&nbsp;</div>;
> <div>;<strong>What is the difference between a servlet and an applet?<;/strong>;</div&gt;
> <div>;&nbsp;</div>;
> <div>;I got few answers saying that applets have GUI and are client side based.</div>
&gt; <div>;&nbsp;</div>;
> <div>;<strong>Database connectivity is acheived even in applets. Then what is the real need of the servlet technology</strong> <strong>to applet</strong>.</div&gt;
> <div>;&nbsp;</div>;
> <div>;Kindly reply at the earliest&lt;/div>
> <div>;&nbsp;</div>;
> <div>;Thank you</div>
> <div>;&nbsp;</div>;
> <div>;with luv</div>
> <div>;Sakthivel.R</div&gt;
>
>; ------=_Part_2643_21475455.1143715363432--






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java Family&quot; group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

A serious doubt
user name
2006-04-05 04:05:59
yes you are near to understanding. Better try to learn
yourself, the
you will understand it completely.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Java Family" group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to
Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

A serious doubt
user name
2006-04-11 06:20:33
applet is just like an applicatin runs inside a browser.
just like
flash plugins etc.
servlet means its runs in the back end. ie in the server.
servlet is
for generating requests, processing user data etc. if you
are
submitting information through an applet that is received by
a servlet
in the server side and that servlet will do the process.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Java Family" group.
To post to this group, send email to Java-Familygooglegroups.com
To unsubscribe from this group, send email to
Java-Family-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/Java-Family
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )