51,413 questions
0
votes
0
answers
68
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 ...
1
vote
0
answers
79
views
Why is Intellij's editor not recognizing standard JSP tags?
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 ...
0
votes
1
answer
78
views
Accessing enum via Jakarta Expression Languauge 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, ...
-3
votes
1
answer
109
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(&...
-2
votes
2
answers
128
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}"
...
1
vote
1
answer
88
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-...
-3
votes
1
answer
71
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 ...
0
votes
3
answers
121
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 ...
0
votes
0
answers
87
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"...
1
vote
0
answers
108
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 ...
1
vote
0
answers
58
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 ...
0
votes
0
answers
96
views
Inspect shows Charset Encoding of ISO even when i have mentioned UTF-8 in all files
When i open the menu of my web application, i use inspect > network tab and see that pdamnu.do file has charset encoding of ISO.
Now in my pdamnu.jsp i have mentioned the encoding of utf-8
<%@ ...
0
votes
0
answers
40
views
JSPs and Tomcat Apache 8.5: Session IDs not persisting
So in the same server container on Apache Tomcat 8.5 (I got a new laptop from work, this problem wasn't happening on the older desktop), I have one form that calls ajax pages and I put an output of ...
0
votes
2
answers
59
views
adding a form checkbox to a bound boolean field of a list of objects
java 8
spring Boot 2.2.11.RELEASE
spring 5.2.10.RELEASE
hibernate 5.4.22.FINAL
mysql-connector-java 8.0.22
eclipse oxygen
straight JSP, no Thymeleaf
I'm trying to populate a form with a list of ...
0
votes
1
answer
561
views
After migrating to Struts 7.0.0, `<s:set>` won’t pick up my POJO property—what am I missing?
I’ve just upgraded our project from:
Struts: 2.5.32 → 7.0.0
Spring: 5.x → 6.x
Java: 8 → 17
Since the migration, the <s:set> tag no longer reads values from my POJO, even though it used to work ...