Author Archives: Stanislav_Panteleev

Java.Servlets.Why is it not necessary to configure standard JSP tags in web.xml?

📜 Why Is It NOT necessary to configure standard JSP tags (like JSTL) in web.xml? ✅ Because modern JSP engines (starting from Servlet 2.4 / JSP 2.0 and later)support automatic tag library discovery based on: URI declarations in the JSP … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlets.Why is it not necessary to configure standard JSP tags in web.xml?

Java.Servlet.How to make a line break in HTML using JSP?

In HTML, a line break is created with the <br> tag. ✅ In a JSP page, you just write normal HTML for line breaks, because JSP ultimately outputs HTML to the browser. Example inside JSP: ✅ This will render: 🛠️ … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.How to make a line break in HTML using JSP?

Java.Servlets.Give an example of using your own tags.

I’ll show you how to: Write a Java class for the tag Configure a TLD file (Tag Library Descriptor) Use your custom tag inside a JSP page Pass a parameter (attribute) to the tag 🎯 Goal: We will create a … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlets.Give an example of using your own tags.

Java.Servlets.What do you know about writing custom JSP tags?

Custom JSP tags allow you to create your own new JSP tag (like <my:hello /> or <my:showDate />) that encapsulates Java logic cleanly,instead of mixing Java code (<% %>) directly into your JSP pages. ✅ It helps you extend JSP … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlets.What do you know about writing custom JSP tags?

Java.Servlets.How can you extend the functionality of JSP?

In JSP, basic functionality (HTML + embedded Java) is sometimes not enough.You often want to add new behaviors cleanly — without putting Java code into JSPs. Here are the main ways to extend JSP functionality: 🔵 1. Custom Tags ✅ … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlets.How can you extend the functionality of JSP?

Java.Servlet.What is the difference between and and the <%@include %> directive?

📜 The Three Ways to Include Content in JSP Feature <%@ include %> <jsp:include> <c:import> Type Static include Dynamic include Dynamic import (even external URLs) When it happens Translation time (before JSP becomes a servlet) Request time (when user accesses … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What is the difference between and and the <%@include %> directive?

Java.Servlet.What is the difference between and ?

Although both <c:set> and <jsp:useBean> create or work with variables/objects in JSP,they have very different purposes and work at different levels. 🔵 1. <jsp:useBean> Feature Explanation Purpose To create or locate a JavaBean (Java class instance) Scope Page, request, session, … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What is the difference between and ?

Java.Servlet.What tag groups does the JSTL library consist of?

The JSTL library is divided into five main groups (also called tag libraries),each designed for a specific type of functionality. Tag Group Purpose Prefix Example Core Tags Basic control flow, iteration, variables, URL management <c:…> Formatting Tags Formatting text, dates, … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What tag groups does the JSTL library consist of?

Java.Servlet.What is JSTL (JSP Standard tag library)?

JSTL stands for JavaServer Pages Standard Tag Library. ✅ It’s a collection of ready-to-use, standardized custom tags for common tasks you often need in JSP, like: Iterating over collections Making decisions (if/else) Formatting text and numbers Accessing databases Handling XML … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What is JSTL (JSP Standard tag library)?

Java.Servlet.How to find out the type of HTTP method using JSP EL?

In JSP EL, you can’t directly call methods like request.getMethod() because EL is designed mainly for accessing attributes and properties, not for executing complex logic. ✅ However, you can still access the HTTP method indirectly using request scope attributes. 🔥 … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.How to find out the type of HTTP method using JSP EL?