51,315 questions
Score of 1
0 answers
43 views
UPI deep link popup causes JSP page to reload/navigate back while countdown timer is running
I am developing a UPI payment flow in a JSP application.
When the page loads, I automatically trigger the UPI deep link. The UPI apps (Google Pay, PhonePe, Paytm, etc.) popup is displayed correctly.
...
Score of 0
0 answers
117 views
Packaging Spring Boot application as layered war
I have a legacy application containing JSPs and Taglibs packaged as a WAR file.
I applied the recipe described in documentation https://docs.spring.io/spring-boot/reference/packaging/container-images/...
Score of 2
2 answers
113 views
Error 404 occurs when accessing pages within web-inf in the production environment, however the error does not occur in the development environment
Error 404 occurs when accessing pages within web-inf in the production environment, however the error does not occur in the development environment. The server is Tomcat 9. Java 8.
I simply can't find ...
Score of 1
0 answers
91 views
about tiles.xml usage(javascript rendering)
JS files are not loaded when using tiles layout.
I set up tiles.xml so that header.jsp is included, and header.jsp loads external JS and CSS files such as jquery.min.js.
However, when I run the ...
Score of 0
1 answer
178 views
Spring Boot 4 embedded Tomcat (11.0.15) unable to reference nested enum classes
Prior to migrating to Spring Boot 4 (Spring Boot 3.5) when running via the embedded Tomcat sever, web applications could reference nested enum classes from within JSPs like so:
Java class with a ...
Score of 2
0 answers
124 views
Why is Intellij's editor not recognizing standard JSP tags? [closed]
The project runs fine when I deploy it to Tomcat. The problem is the editor: it flags the taglib URL, and the "if" tag, like it's never heard of them.
This is a project that I've been ...
Score of 0
1 answer
103 views
Accessing enum via Jakarta Expression Language in Pages
According to the official tutorial I should be able to reference an enum class via Expression Language. The example from the mentioned tutorial is as follows:
public enum Suit {hearts, spades, ...
Score of -3
1 answer
118 views
Removing elements from HTML with JavaScript [closed]
Java, Spring Boot, JSP
Goal: if an object is not added to the DOM remove some elements already present
IndexController.java
boolean isDeleteAddButtons = true;
if (isDeleteAddButtons) {
mv.addObject(&...
Score of -2
2 answers
150 views
Add n days to a date [duplicate]
I have this code in my jsp page to list a payment to date:
<li>Paid Due Date: <fmt:formatDate value="${premiumPaidToDate.time}"
...
Score of 1
1 answer
97 views
Replace variable amount of characters in JSTL match
I have a text string with 0-5 leading spaces at the beginning of lines that is being displayed in a JSP, and it needs to keep those spaces for indentation
The way the code is currently, it's hard-...
Score of -3
1 answer
86 views
JSL-Springboot security login page redirecting infinitely (ERR_TOO_MANY_REDIRECTS) [duplicate]
/login page seems to be stuck in a loop of being redirected to self.
For context, I want /register & /login to be visible without authentication, while all other pages in my project should ...
Score of 0
3 answers
158 views
Set width of unknown number of CSS Grid columns [closed]
I have an HTML Grid in a JSP that will have an unknown amount of columns from 1-3 that need to each be equal width to each other, followed by two more columns at a fixed width
Is there any way to use ...
Score of 0
0 answers
96 views
Encoding tags In JSP
All 3 are working fine. I want to know which one is correct way ? what is the difference in below 3 different lines.
<%@ taglib uri="/WEB-INF/tlds/security/esapi.tld" prefix="en"...
Score of 1
0 answers
110 views
JavaScript - The JSON object is not printing [duplicate]
I want to display the JSON object to the JSP page via JavaScript function. The function is invoked when search button is clicked. I want to search the patient details and display it on the same ...
Score of 1
0 answers
75 views
Liferay : Add a custom field form in jsp
I am working with an old version of Liferay. I created a custom liferay form field using the blade cli (an input for files), I followed the Liferay documentation.
Now, I want to display the form filed ...