Your SlideShare is downloading. ×
0
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Jsp chapter 1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Jsp chapter 1

6,846

Published on

introduction to jsp ppt and jsp architecture ppt

introduction to jsp ppt and jsp architecture ppt

Published in: Education, Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,846
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
3
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  1. JSP http://www.java2all.com
  2. Chapter 1JSP Introduction http://www.java2all.com
  3. Introduction to JSP http://www.java2all.com
  4. JSP : Jsp stands for “Java server page”. JSP are built by SUN Microsystem. JSP enable the developers to directly insert java code into jsp file, this makes the development process very simple and its maintenance also becomes very easy. JSP simply place JAVA inside the HTML pages means it’s an embedded of html tag and jsp’s own tag. http://www.java2all.com
  5. The extension of jsp page is ".jsp” Java is known for its characteristic of"write once, run anywhere." and JSP page is acombination of java code into html file so wecan say that the JSP pages are platformindependent means .jsp pages can run in anyplatform. http://www.java2all.com
  6. NOTE : We are using here MyEclipse 7.1 an enterpriseedition for developing the jsp files in any web project.You can visit the VIDEO/PPT of our site for detail ofthat IDE (Integrated development environment).The following example contains the simple html code.File name: simple.html <html> <head> <title>web page</title> </head> <body> <p><b>This is a simple demo of creating a web page.</b><p> <br> </body> </html> http://www.java2all.com
  7. The output of above program is: This is asimple demo of creating a web page. Now, just change this HTML page extension to".jsp" instead of ".html" extension so the file namebecomes “simple.jsp” and now it’s became a simplejsp file.File name: simple.jsp <html> <head> <title>web page</title> </head> <body> <p><b>This is a simple demo of creating a web page.</b><p> <br> </body> </html> http://www.java2all.com
  8. The output of above program is: This is asimple demo of creating a web page. NOTE : The simple .java file which is run onserver side is called Servlet. For the detail of Servletyou can visit the Servlet technology in our site. http://www.java2all.com
  9. JSP Architecture http://www.java2all.com
  10. JSP Architecture : http://www.java2all.com
  11. Steps :1). The user goes to a JSP page by makes therequest via internet in user’s web browser.2). The JSP request is sent to the Web Server.3). Web server accepts the requested .jsp file andpasses the JSP file to the JSP Servlet Engine.4). If the JSP file has been called the first time thenthe JSP file is parsed otherwise servlet is instantiated. http://www.java2all.com
  12. 5). The next step is to generate a servlet from theJSP file. In that servlet file, all the HTML code isconverted in println statements.6). Now, The servlet source code file is compiledinto a class file (bytecode file).7). The servlet is instantiated by calling the init andservice methods of the servlet’s life cycle.8). Now, the generated servlet output is sent via theInternet form web server to users web browser. http://www.java2all.com
  13. 9). Now in last step, HTML results aredisplayed on the users web browser. http://www.java2all.com

×