JSP

In this tutorial you will learn to develop the nested tags, in this example of nested we will take the attribute as country for parent and child tags, and inside child tag will check if the country is same as parent than only execute the body content of child tag. The code of parent tag […]

Iteration tag if for achieving the for loop, while loop and if condition inside the JSP page, for example you want to iterate a body of custom tag 10 time. We can achieve the iteration using the IterationTag interface which is the interface in jsp API, this interface has one extra method named doAfterBody() which […]

In this tutorial you will learn how you can put the attributes for your JSP custom tag, you can get the attribute inside tag handler class and do some logic on it. This example will use the attribute name as country and the value of country attribute we will display in JSP output. If you […]

In any JSP custom tag you can put the any type of body like scriptlets, expression or text, but if you want to restrict the use to put body content to some specific type, you can mentioned same inside the LTD file while registering the tag. There is optional element where you can specify the […]

In this tutorial you will learn how to develop a hello world JSP custom tag and use it in JSP file. Development steps of JSP custom tag Write a public class by making a subclass of javax.servlet.tagext.Tag interface, the Tag interface has total six methods, and you have to implement all the methods. The example […]

The JSP API comes with custom tags library, which is a powerful feature of JSP. The custom tag is valuable to anyone who is building production quality based web application. Custom tag libraries allow the Java programmer to write code that provides various services, and they make those features available to the JSP author in […]

The JSP model 2, or as it is most commonly referred to today, Model-View-Controller(MVC), solves many of the inherent problems with the original Model 1 design by providing a clear separation of application responsibilities. The JSP model 1 has disadvantage as for large web application it is very difficult to maintain, the java people introduce […]

When Java people introduced JSP and Servlet technology, they also provided a development road map for working with JSP and Servlet and defined two architecture models for developing JSP or Servlet based web applications. The two models are known as Model 1 and Model 2 and they prescribe different approaches to designing JSP or Servlet […]

The JSP action tag is used to transfer the control between pages and is also used to enable the use of server side JavaBeans. It is not good idea to write the java code inside JSP page, to come over JSP comes with predefined actions tags which can be used to either link to a […]

The availability of a JSP object for use from a particular place of the application is defined as the scope of that JSP object. Scope of a JSP object determines whether that object is available to be used at a particular place in the application or not. The scope of JSP objects- JavaBeans and implicit […]