51,445 questions
-3
votes
1
answer
104
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
120
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}"
...
0
votes
1
answer
83
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
63
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
100
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
86
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
52
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 ...
1
vote
0
answers
92
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
58
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
482
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 ...
1
vote
1
answer
125
views
Spring 6, Tomcat 10 and Jakarta servlet ..url, url with jsp extension[/application-context/keepalive.jsp] page loads but giving status as 404
I have the following configuration and I am not writing down other default configuration here.
When giving the browser an URL with /application-context/keepalive, it works and gives status as 200, ...
0
votes
0
answers
73
views
Apache won't proxy to Tomcat 10
I'm installing a JSP webapp on Ubuntu 24.04 using Tomcat 10 and Java 11. The app is designed to have Apache proxy JSP requests to Tomcat via AJP. It has worked with previous versions of Ubuntu, ...
0
votes
0
answers
84
views
Spring application is not finding the JSP file and giving /error mapping
I was building a small application to test the functionality of the JSP files in Java, my application only has a controller which maps the endpoint and one(for now) JSP file which is the "home&...