Java and Android Programming Tutorials
JSP
Watch “JSP Part-20 | Java Bean Properties and Methods (Gujarati)” on YouTube
Java Bean
➡️ It is a reusable software component.
➡️ A bean encapsulates many objects into one object, so we can access this object from multiple places.
➡️ It provides the easy maintenance.
Java Bean is a java class that should follow following rules:
➡️ It should have a no-argument or zero argument Constructor.
➡️ It should be Serializable.
➡️ It should provide methods to set and get the values of the properties (getter & setter methods).
Java Bean Property types
➡️ Simple : It has a single value whose changes are independent of changes in any other property.
➡️ Indexed : Such bean supports a range of values instead of a single value.
➡️ Bound : A change to the property results in a notification being sent to some other bean.
➡️ Constrained : Here a change to the property results in validation by another bean in this property. The other bean may reject the change if it is not appropriate.
#RaviROza #JavaBeanPropertiesandMethods #AdvanceJava #Jdk #Java #Gujarati
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-19 | JSP JDBC with CRUD – Code Optimization, Retrieving Data using Array List (Gujarati)” on YouTube
➡️ Retrieving data using Array List (array list of objects)
➡️ Code Optimization
Here, Array List us used to hold the list of object of type EmpBean.
JSP with Bean and Data access object (DAO). JSP is the normal jsp page which uses the bean to store employee information. The DAO file also know an Data Access Layer of our application, contains the code perform database operations such as add, change, delete etc.,
This video demonstrates the best usage of MVC (Model View & Controller) architecture in Java.
➡️ The model here is the EmpBean which holds the employee information.
➡️ The index page is the View which is interface used by client to enter the input and get to view the output.
➡️ The controller here the file which accepts the request from client and sets to bean and bean finally manages the database operation.
CRUD – Create, Read, Update & Delete
With reference to previous video 👉 https://youtu.be/63cIEAnz7Hc which consist of Add operation & Display operation.
and 👉 https://youtu.be/Asi4H3QCHY4 which consist of Delete operation.
In this video the same example has been extended to support Edit/Update operation using display page. The link (url to edit page and ID of record to be updated) has been generated in the display page for to update record.
Once user click the Edit link , the control is transfer to edit.jsp page, where the the ID of the record to be updated is fetch from request object and the other details are set in text boxes so that user can edit the data.
There is a Update (submit) button which transfer user control to the update.jsp page, where all the submitted data is updated into emp table.
#RaviROza #JSPJDBC #CRUD #AdvanceJava #Jdk #Java #Gujarati #ArrayList #CodeOptimizationInJava
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-18 | JSP JDBC with CRUD (Update operation) (Gujarati)” on YouTube
JSP with Bean and Data access object (DAO). JSP is the normal jsp page which uses the bean to store employee information. The DAO file also know an Data Access Layer of our application, contains the code perform database operations such as add, change, delete etc.,
This video demonstrates the best usage of MVC (Model View & Controller) architecture in Java.
➡️ The model here is the EmpBean which holds the employee information.
➡️ The index page is the View which is interface used by client to enter the input and get to view the output.
➡️ The controller here the file which accepts the request from client and sets to bean and bean finally manages the database operation.
CRUD – Create, Read, Update & Delete
With reference to previous video 👉 https://youtu.be/63cIEAnz7Hc which consist of Add operation & Display operation.
and 👉 https://youtu.be/Asi4H3QCHY4 which consist of Delete operation.
In this video the same example has been extended to support Edit/Update operation using display page. The link (url to edit page and ID of record to be updated) has been generated in the display page for to update record.
Once user click the Edit link , the control is transfer to edit.jsp page, where the the ID of the record to be updated is fetch from request object and the other details are set in text boxes so that user can edit the data.
There is a Update (submit) button which transfer user control to the update.jsp page, where all the submitted data is updated into emp table.
RaviROza #MVC #JSPJDBC #CRUD #DAO #AdvanceJava #Jdk #Java #Gujarati
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-17 | JSP JDBC with CRUD (Delete operation) (Gujarati)” on YouTube
JSP with Bean and Data access object (DAO). JSP is the normal jsp page which uses the bean to store employee information. The DAO file also know an Data Access Layer of our application, contains the code perform database operations such as add, change, delete etc.,
This video demonstrates the best usage of MVC architecture in Java.
➡️ The model here is the EmpBean which holds the employee information.
➡️ The index page is the View which is interface used by client to enter the input and get to view the output.
➡️ The controller here the file which accepts the request from client and sets to bean and bean finally manages the database operation.
CRUD – Create, Read, Update & Delete.
With reference to previous video 👉 https://youtu.be/63cIEAnz7Hc which consist of Add operation & Display operation.
In this video the same example has been extended to support Delete operation using display page. The link (url to delete page and ID of record to be deleted) has been generated in the display page for to delete record.
Once user click the Delete link , the control is transfer to delete.jsp page, where the the ID of the record to be deleted is fetch from request object and the same will be deleted from the emp table.
RaviROza #MVC #JSPJDBC #CRUD #DAO #AdvanceJava #Jdk #Java #Gujarati
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-16 | JSP JDBC with Bean and DAO (Gujarati)” on YouTube
JSP with Bean and Data access object (DAO). JSP is the normal jsp page which uses the bean to store employee information. The DAO file also know an Data Access Layer of our application, contains the code perform database operations such as add, change, delete etc.,
This video demonstrates the best usage of MVC architecture in Java.
➡️ The model here is the EmpBean which holds the employee information.
➡️ The index page is the View which is interface used by client to enter the input and get to view the output.
➡️ The controller here the file which accepts the request from client and sets to bean and bean finally manages the database operation.
RaviROza #MVC #JSPJDBC #DAO #AdvanceJava #Jdk #Java #Gujarati
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-14 | MVC in JSP with example (Gujarati)” on YouTube
RaviROza JSPImplictObjects #jsp:UseBean #Jdk #Java #AdvanceJava #Gujarati
Model View & Controller
▶️ It is a design pattern that separates the business logic, presentation logic and data.
▶️ Model represents the state of the application i.e. data. It can also have business logic. (Data & business logic)
▶️ View represents the presentation i.e. UI (User Interface).
▶️ Controller acts as an interface between View and Model. Controller intercepts all the incoming requests. (Controller is a request handler)
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-13 | Model View & Controller – MVC Architecture (Gujarati)” on YouTube
RaviROza JSPImplictObjects #jsp:UseBean #Jdk #Java #AdvanceJava #Gujarati
Model View & Controller
▶️ It is a design pattern that separates the business logic, presentation logic and data.
▶️ Model represents the state of the application i.e. data. It can also have business logic. (Data & business logic)
▶️ View represents the presentation i.e. UI (User Interface).
▶️ Controller acts as an interface between View and Model. Controller intercepts all the incoming requests. (Controller is a request handler)
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-12 | Implicit object, use bean & Error page revision (Gujarati)” on YouTube
RaviROza JSPImplictObjects #jsp:UseBean #Jdk #Java #AdvanceJava #Gujarati
JSP Application object:
▶️ It represents the context within which the JSP is executing.
▶️ It has application scope.
▶️The application object represents the application to which the JSP is executing to which the JSP page belongs.
▶️ It is an instance of the javax.servelt.ServletContext.
JSP Config object:
▶️ config is an implicit object of type ServletConfig.
▶️ This object can be used to get initialization parameter for a particular JSP page.
▶️ The config object is created by the web container for each jsp page.
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101
Watch “JSP Part-11 | JSP Implicit Objects with example (Gujarati)” on YouTube
RaviROza JSPImplictObjects #Jdk #Java #AdvanceJava #Gujarati
JSP Application object:
▶️ It represents the context within which the JSP is executing.
▶️ It has application scope.
▶️The application object represents the application to which the JSP is executing to which the JSP page belongs.
▶️ It is an instance of the javax.servelt.ServletContext.
JSP Config object:
▶️ config is an implicit object of type ServletConfig.
▶️ This object can be used to get initialization parameter for a particular JSP page.
▶️ The config object is created by the web container for each jsp page.
OS : Windows 10
Jdk : Version 8
IDE : Eclipse Mars
Server : Apache Tomcat 7
Follow me @
https://raviroza.wordpress.com/
https://raviroza.blogspot.com/
https://www.facebook.com/ravi.oza.it
https://twitter.com/raviozaIT
Subscribe my channel to get latest video notification https://www.youtube.com/user/ravioza101