This tag Is Used to Display the Output of Xpath on web browser.

 

This Function tests the Input String starts with the given suffix or not.

 

This Tag <sql:update> Execute The Sql statement like Insert,Update or Delete.

 

This tag is used to remove the variable from specified place or with the reference of scope of the variable when the particular space is not set on the first instance for removing variable. This tag ensures that it will remove any scoped resource or variable it tells to remove. Some attributes it also required for it. Like “var” variable name that has to be removed with the help of this tag.

 
by Dinesh Thakur Category: JSP Elements

We know that Servlet is a server side technology, so why has Sun Microsystems given JSP?

 
by Dinesh Thakur Category: JSP Elements

Life cycle of a program includes the phases starting from creating objects for the class, execution, and at last destruction of objects. For this life cycle, JSP needs some life cycle methods.

 
by Dinesh Thakur Category: JSP Elements

There are some problems with Servlet programming.

 
by Dinesh Thakur Category: JSP Elements

For web application development JSP generally supports two types of architecture.

 
by Dinesh Thakur Category: JSP Elements

JSP technology is the Java Platform Technology (enterprise technology) for delivering dynamic content to web user (the person who is giving request from browser window) in a portable, secure and well-defined way. JSP has been built on top of the Servlet API and utilizes Servlet semantics. It uses HTML and XML templates and Java code to generate JSP page. JSP is secure, fast and independent of server platforms.

 
by Dinesh Thakur Category: JSP Elements

A JSP page contains tags. The tags are in the form of scripting tags, directive tags and comments. Tags help programmers to develop Java codeless JSP program. Implicit objects increase the functionality of JSP page. Scripting element also helps in generating dynamic content and displaying dynamic content.

 
by Dinesh Thakur Category: JSP Elements

A JSP page mainly comprises the following types of code.

 
by Dinesh Thakur Category: JSP Elements

When the bill amount exceeds Rs. 1000 then else part of calc.jsp gets executed and it forwards the request to discount.jsp page .

 
by Dinesh Thakur Category: JSP Elements

The intention is to introduce the communication in between the servlet and JSP. The welcome page is designed by the HTML code.



 
by Dinesh Thakur Category: JSP Elements

Standard syntax

<% @ include file= "desturl" %>

 
by Dinesh Thakur Category: JSP Elements

When we send any request to the JSP program from the browser window, we pass the request URL in the browser window. In this process to send the data along with the request, the programmer also requires adding the query string to request URL explicitly. But this task is highly of technical. For that a graphical user interface is required which can generate a request which mayor may not hold the data. For this purpose, the programmer can use either HTML form or hyperlink to generate the request with or without data. The example of HTML to JSP communication is given below:

 
by Dinesh Thakur Category: JSP Elements

Standard syntax

<j sp: forward page= "desturl" />

 
by Dinesh Thakur Category: JSP Elements

JSP comment

Used for commenting JSP tags base code (or JSP code) of JSP program. A JSP page compiler recognizes JSP comments. As JSP comments are visible in source, code of  JSP program and not visible in any other process of JSP program execution so these are called hidden comments. They are written like this:

 
by Dinesh Thakur Category: JSP Elements

In the below JSP program the aim is to understand how JSP communicates with the database. The designing is done by HTML.



 
by Dinesh Thakur Category: JSP Elements

Supports tags based programming

JSP supports tag-based programming. As it is a tag-based programming extensive knowledge of Java is not required. Non-Java users can learn it easily. This tag increases the readability of code. Gives built-in JSP tags and also allows to develop custom JSP tags and also to use third party supplied JSP tags.

 

Page 3 of 5



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.