Hi brenda,

To keep it simple, fundamentally jsp and servlets
have the same  functionality.JSP is specification not
a language like java.
In fact java is the language used to write jsp pages.

But jsp has been more designed to handle the
presentation/visual interface of the server response
to the client. It is relatively cryptic and in-elegant
to generate a html page whose content is highly
dynamic using a servlet.

In a jsp page, you can specify the structure of html
document using the normal html syntax and wherever you
want the content of the page to be dynamic, simply
place a corresponding jsp tag out there(refer jsp
syntax card at http://java.sun.com/products/jsp).
Different tags are used to accomplish different tasks.

Till date, the only scripting language supported by
jsp specification is java. You can use any java class
or piece of java code in a jsp page.

For java beans, since the purpose of jsp page is to
handle presentation of the content(although processing
logic can be directly put in jsp page also), we use a
external java component to contain processing logic
like accessing data from a database etc in a java bean

and have that bean called from jsp page using the
special <jsp:useBean ...../> tag.


Finally, when called first time, a jsp  page is
cmpiled into a servlet and then treated as good as a
servlet.

hope this would help.
please get back for more Qs.



manoj


--- Brenda Tung <[EMAIL PROTECTED]> wrote:
> hi everyone,
>
> I've just started reading up on JSP. I'm quite
> confused by what's the
> difference between java servlets and JSP. And where
> do java beans come
> into the pictures. Do i just use the use bean tags
> in JSP ?
>
> Thank you all for your kind attention.
>
> Brenda
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

=====
Manoj Kumar
Infotech Consulting Inc,
Camphill, PA USA
[EMAIL PROTECTED]
www.icibsl.com

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to