JSP Tutorial Basic Starting - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript JSP Tutorial Basic Starting - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript


Post Top Ad

Post Top Ad

Sunday, August 20, 2017

JSP Tutorial Basic Starting

JSP Tutorial Basic Starting



Creating a new projetc in Netbeans IDE

Then Select Web Application

Then Select Server to Apache Tomcat Or Tom EE Server then Next.

Now Lets Start .

Creating a Simple JSP Page That prints Hello World In Browser.


Now Write the codes.
    Document   : home
    Created on : Aug 13, 2017, 12:50:38 PM
    Author     : sanjeev

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>

        <% out.print("<h1>Hello World!</h1>"); %> 

Then Click On Run Icon  then localhost running at port 8080 now open your home.jsp by /home.jsp    
And you successfully run your first jsp page like this.

Now Understanding the codes

<%@page contentType="text/html" pageEncoding="UTF-8"%>

This line define the page that we are using stand html tag in our page that browser render the html tags to display html view in our browser if we change the “text/html” to “text/plain” then browser display all the contents as plain text like this. We call this option as page header option.

Other are basic Html tags of pages now Next important line is know as scriptlet tag.  A scriptlet tag is used to execute java source code in JSP. Syntax is as follows:

<% java source code %>
Example :

        <% out.print("<h1>Hello World!</h1>"); %> 



  1. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information about the web design and web development.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    hire iphone app developers
    hire dot net developer

  2. I wish to show thanks to you just for bailing me out of this particular trouble.As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.

    Web Design Chennai

  3. Java web applications are presented to an extraordinary assortment of potential dangers since these applications serve substance to the clients on the Web. At that point there exist extraordinary conceivable outcomes of programmers, busybodies and so forth., who endeavor to demolish the substance that you've distributed on the Internet, which might be negative to your business or associations overall. Henceforth, it ends up plainly vital to secure Java applications. I collect a decent site from internet for the WordPress Toronto,If you need you can visit this site.


Post Top Ad