JSP Video Tutorial

JSP Part-1 | Java Server Pages - Introduction  (Gujarati)

JSP is a server side scripting language

It is based on java language and enable the development of dynamic web page.

JSP files are HTML files with special tag containing java source code that provide dynamic content.

It is used to create web app, focuses more on presentation logic.

JSP is easier to maintain than a Servlet.

Servlet adds HTML code inside Java code, while JSP adds Java code inside HTML.



JSP Part-2 | Login example | Scriplet, Expression & Comment tag (Gujarati)


Video features the combination of following
- Scriplet tag, 
- Expression tag & 
- Comment tag example in JSP

Following are the files used in the JSP login example
- index.jsp
- login.jsp
- welcome.jsp
- sorry.jsp

Overall process of example:
index.jsp page contains user interface to accept username and password from client side, when client submits the control transfer to the login.jsp file which contains the logic to validate username and password. If the client information is validated the control is transfer to welcome.jsp otherwise to sorry.jsp.

respose.sendRedirect() method is used to transfer the control from login.jsp page to welcome.jsp or sorry.jsp.



JSP Part-3 | Declaration tag example (Gujarati)


Video features the combination of following:
👉 Variable declaration in declaration tag 
👉 Method declaration in declaration tag

If we declare them in declaration tag, both variables, objects & methods, they will be accessible throughout that page. It is used declare public objects or methods for the current page, every scriplet in current page can access it.



JSP Part-4 | Include Directive example (Gujarati)

Video features the following:
👉 Usage of Include Directive tag
👉 Inclusion of any java/html/jsp resource in jsp file

Following are the list of files used in example
- index.jsp
- header.jsp
- footer.jsp
- search.jsp
- about.jsp
- contact.jsp

In this example index page used as home page. 
Header.jsp contains the header information such as website name, logo & menus. 
Footer.jsp contains the footer information such as quick links, company's policies etc.,
Search.jsp is used to find the information from website.
About.jsp is the page which holds the info related to company history & its objective past and future work
Contact.jsp is the contact page which is useful when client want to communicate with the company.

Summary:
JSP Include Directive is the best way to have reusability, where a the content of one page or resources can be merged to existing Jsp



JSP Part-5 | Page Directive attributes example (Gujarati)

Video features the following:
- usage of page attributes in JSP

It is used to provide instructions to a container that connect to  current JSP page.
It defines page dependent properties/attributes such as scripting language, error page, etc., which communicates with the Web Container at the time of page translation. 

Following are the list of files used in example
- index.jsp
- myerror.jsp

please refer https://raviroza.wordpress.com  to download the files related to this example

No comments:

Post a Comment

Recent Post

Launching of my new Domain

RaviROza.com