Category Archives: Без рубрики

Java.Servlet.How to disable the ability to use EL in JSP?

You can disable EL evaluation in a JSP page by setting the isELIgnored attribute to true in the page directive. ✅ Syntax: This tells the JSP engine to treat ${…} as plain text, not as an EL expression. EL will … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.How to disable the ability to use EL in JSP?

Java.Servlet.Name the implicit, internal JSP EL objects and how they differ from JSP objects.

When you use EL (${…}) in JSP, there are special implicit objects available automatically inside the EL context. ✅ These are different from the classic JSP implicit objects (request, response, session, etc.) you use in Java code inside JSP. 🔵 … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.Name the implicit, internal JSP EL objects and how they differ from JSP objects.

Java.Servlet.What types of EL operators do you know?

In EL (${ … }), you can use many types of operators — very similar to Java, but slightly simplified. Here’s the full organized list: 🔵 1. Arithmetic Operators Operator Description Example + Addition ${2 + 3} → 5 – … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What types of EL operators do you know?

Java.Servlet.What do you know about JSP Expression Language (EL)?

JSP Expression Language (EL) is a simple and powerful way to access Java objects in JSP pages without writing Java code (no <% %> needed). It allows you to access request attributes, session attributes, application attributes, JavaBeans properties, collections, and … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What do you know about JSP Expression Language (EL)?

Java.Servlet.Is it possible to define a class inside a JSP page?

✅ Yes, it is technically possible to define a Java class inside a JSP page. You can do it inside a JSP declaration tag: <%! … %>. This code will be inserted into the servlet class that the JSP engine … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.Is it possible to define a class inside a JSP page?

Java.Servlet.Why is it not recommended to use scriptlets (script elements) in JSP?

1. 🧹 Mixing Java Code with HTML = Messy and Hard to Maintain When you write Java code directly inside JSP (inside <% … %> blocks),you mix two completely different concerns: Presentation (HTML) Business logic (Java code) Result: Pages become … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.Why is it not recommended to use scriptlets (script elements) in JSP?

Java.Serlet.How to configure initialization parameters for JSP?

Initialization parameters are name–value pairs that are passed to the JSP/servlet when the server loads it. There are two ways to configure them: 🔵 1. Using web.xml (Traditional way) You can define JSP initialization parameters inside the web.xml file of … Continue reading →

Posted in Без рубрики | Comments Off on Java.Serlet.How to configure initialization parameters for JSP?

Java.Servlet.What do you know about PageContext and what are the advantages of using it?

PageContext is an implicit object available in JSP that acts like a central manager for everything on a JSP page. Think of it as a super helper object that provides: Access to all the other scopes (page, request, session, application) … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What do you know about PageContext and what are the advantages of using it?

Java.Servlet.What implicit objects are not available in a regular JSP page?

👉 The exception object is NOT available in a regular JSP page. Object Available in regular JSP? Notes request ✅ Yes Always response ✅ Yes Always session ✅ Yes Always application ✅ Yes Always out ✅ Yes Always config ✅ … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What implicit objects are not available in a regular JSP page?

Java.Servlet.What implicit, internal objects and methods are there in a JSP page?

📜 Implicit Objects in JSP Implicit Objects are automatically created by the JSP container and available to you inside a JSP page without any declaration. You don’t need to create them — they just exist! Here’s the list: Object Type … Continue reading →

Posted in Без рубрики | Comments Off on Java.Servlet.What implicit, internal objects and methods are there in a JSP page?