Saturday 16 January 2016

BASICS OF JSP

LIFE CYCLE OF JSP

A JSP page is converted into Servlet in order to service requests. The translation of a JSP page to a Servlet is called Lifecycle of JSP. JSP Lifecycle consists of following steps.
  1. Translation of JSP to Servlet code.
  2. Compilation of Servlet to bytecode.
  3. Loading Servlet class.
  4. Creating servlet instance.
  5. Initialization by calling jspInit() method
  6. Request Processing by calling _jspService() method
  7. Destroying by calling jspDestroy() method

Web Container translates JSP code into a servlet class source(.java) file, then compiles that into a java servlet class. In the third step, the servlet class bytecode is loaded using classloader. The Container then creates an instance of that servlet class.The initialized servlet can now service request. For each request the Web Container call the _jspService()method. When the Container removes the servlet instance from service, it calls the jspDestroy() method to perform any required clean up.

JSP INTRODUCTION

INTRODUCTION TO JSP

JSP technology is used to create web application just like Servlet technology.It focuses more on  presentation logic of the web application.It can be thought of as an extension to servlet because it provides more functionality than servlet such as expression language, jstl etc.JSP pages are opposite of Servlets. Servlet adds HTML code inside Java code while JSP adds Java code inside HTML. Everything a Servlet can do, a JSP page can also do it.JSP enables us to write HTML pages containing tags that run powerful Java programs. JSP separates presentation and business logic as Web designer can design and update JSP pages without learning the Java language and Java Developer can also write code without concerning the web design.
Advantages of JSP:
1)Easy to maintain
JSP can be easily managed because we can easily separate our business logic with presentation logic. In servlet technology, we mix our business logic with the presentation logic.
2)Less code than Servlet
In JSP, we can use a lot of tags such as action tags, jstl, custom tags etc. that reduces the code. Moreover, we can use EL, implicit objects etc.
3) Fast Development: No need to recompile and redeploy
If JSP page is modified, we don't need to recompile and redeploy the project. The servlet code needs to be updated and recompiled if we have to change the look and feel of the application.
4) Extension to Servlet
JSP technology is the extension to servlet technology. We can use all the features of servlet in JSP. In addition to, we can use implicit objects, predefined tags, expression language and Custom tags in JSP, that makes JSP development easy.

Wednesday 13 January 2016

Xiaomi redmi 3 Smartphone

Xiaomi introduced  new excellent facilities smartphone with Affordable price. The name of the mobile is Xiaomi redmi 3.Released at January 2016.
IMPORTANT FEATURES: 

  • Android 5.1 lollipop OS
  • Dual sim(GSM and GSM)
  • 5 inch Display(resolution 720*1280 pixels)
  • Qualcomm snapdragon 615 processor make
  • 1.2ghz octacore processor
  • 16GB Internal memory
  • Micro sd card Expendable upto 128GB
  • RAM 2GB
  • 13MP rear camera
  • 5MP Front camera
  • Battery 4100mAh(non removable battery)
  • Wi-fi,GPS,FM,4G(with support for Band 40 used by Some LTE networks in India)
  • Proximity sensor,ambient light sensor,Accelerometer
  • weight 144gms
  • price Rs.7102.



HOW TO STOP WINDOWS 10 AUTO UPDATE