2.
Conventionally get request
is used for static resources
Request parameters are
appended to the URL and
sent as a part of the
request header. Name and
values of all request
parameters are shown in
the address bar of the
browser.
Maximum data that can be
sent as request
parameters is determined
by the size of the header
which has a fixed size.
Post request is used for
dynamic resources
Request parameters are
sent as part of request
body. Their name & values
are not shown in the
address bar.
Unlimited data can be sent
as request parameters
3.
Applets are java programs
that are embedded in
webpages. When a web
page containing an applet
is opened the byte code of
the applet is downloaded
to the client computer.
This process becomes
time consuming if the size
of the applet is too large.
As servlets executes on
the web server, they help
overcome problems with
download time faced while
using applets.
Servlets do not require
web browser to be Java
enabled unlike applets
because they execute on
the web server and the
results are sent back to the
client or browser.
Applets Servlets
4. QUIZ GET / POST
1. A user is returning a login name and password
2. A user is requesting a new page via a hyperlink
3. A chat room user is sending a written response
4. A user hits the 'next' button to see the next page
5. A user hits the 'logout' button on a secure banking
website
6. A user hits the 'back' button on the browser
7. A user sends a name and address form to the
server
8. A user makes a radio button selection
5. JSP is what happened when
somebody introduced Java to HTML
1. Not all HTML page designers know Java
JSP = Java (Java Developers) + web pages
(HTML developers)
2. Formatting HTML into a String literal is REALLY
ugly
6. JSP is what happened when
somebody introduced Java to HTML
1. Not all HTML page designers know Java
JSP = Java (Java Developers) + web pages
(HTML developers)
2. Formatting HTML into a String literal is REALLY
ugly