53 questions from the last 365 days
-1
votes
2
answers
95
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}"
...
-3
votes
0
answers
40
views
Onclick setting a value when page loads instead of after the link is clicked
I have this link in my jsp page:
<p>Make a payment to keep your account active. <a href="/payment/payment.form" id="lnkPayment" onClick="${ payment.selectedForPayment ...
-1
votes
0
answers
40
views
Restrict checkbox selection to one or no boxes selected [duplicate]
I have this table
<table id="tblPayment" class="payment-tbl">
<thead>
<tr>
<th class="col-1 ppl-head"></th>
...
0
votes
0
answers
171
views
Jakarta EE 10 JSP: NoClassDefFoundError: jakarta/servlet/jsp/tagext/Tag when using JSTL
I have a Jakarta 10 application which i deploy to google app engine standard java runtime 21. With the current dependencies JSP has been working well along with jstl tags. This is a snippet of my pom....
0
votes
1
answer
76
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-...
-4
votes
1
answer
58
views
JSL-Springboot security login page redirecting infinitely (ERR_TOO_MANY_REDIRECTS)
/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
90
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
82
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
107
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
40
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
87
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
35
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
52
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
366
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
114
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
70
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
83
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&...
0
votes
0
answers
60
views
Filter negotiateSecurityFilter was not registered (disabled) - waffle - Spring boot
Whitelabel Error Page
This application has no explicit mapping for /error
I am trying to do a basic JSP project with spring boot with gradle.
I downloaded a sample project, which works perfectly fine, ...
0
votes
0
answers
49
views
SPRING MVC throws error404 how to resolve it
I'm encountering an HTTP Status 404 – Not Found error when I try to access the following URL in my Spring MVC application:
http://localhost:8080/DemoMVC/add?t1=2&t2=4
The error indicates that the ...
0
votes
0
answers
23
views
com.ibm.ws.jsf.taglib doStartTag Can't leverage base class
I'm trying to run a Java 8 JSP project, but I'm encountering errors when attempting to reach a JSP page. Here are the details of the errors:
java.lang....
0
votes
0
answers
56
views
Working with jsp files not html except login.html which is first page [duplicate]
I am working with web project using Servlet. When I am redirecting to after login.html form it is not showing .html file but .jsp with same content.
Here is my code screenshot and directory structure.
...
0
votes
1
answer
68
views
Spring 6 and ExpressionEvaluationUtils [duplicate]
I have inherited an ancient codebase web application using Spring and JSPs. I've been charged with moving from Spring 3 to Spring 6.
Inside a tag is the following code:
str = ExpressionEvaluationUtils....
1
vote
1
answer
102
views
JSP file is not rendering on browser for Spring Boot application
I am working on a Spring Boot web app, where I am trying to load a simple JSP file to the browser with Tomcat (embedded), through my controller. I am able to print the message inside home to the ...
0
votes
0
answers
49
views
BUILD FAILED on almost empty project in Netbeans with JSP
I am trying to run a simple project in Netbeans 16. It has only 2 files:
index.jsp with this content:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import=...
0
votes
0
answers
37
views
Not able to resolve: Caused by: jakarta.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent [duplicate]
We are getting below JspTagException randomly after javax to jakarta migration.
So can't able to identify the route cause for the issue.
Exception :
Caused by: jakarta.servlet.jsp.JspTagException: ...
0
votes
0
answers
48
views
Liferay portlet language.properties being pulled in but other languages not showing up
I am working on trying to add translations to a liferay portlet. The translations are going in jsp pages. I have been following the liferay instructions but no matter what I do I can't get it to pick ...
0
votes
0
answers
14
views
getting error as "datePicker.closest is not a function"
I am asking user to book appointment date and time against a doctor in the available doctor list in jsp file.
I am using flatpickr to get date and timeslot from the user. I have data in multiple rows ...
0
votes
1
answer
147
views
Spring MVC view resolver successfully resolves JSP, but it still will not load
I am trying to make a web app using Spring 6 (no Spring Boot), with mostly XML configuration. I'm trying to learn this in order to maintain an existing legacy application that uses plain Spring with ...
1
vote
1
answer
347
views
How to set up a Facelets template for a Jakarta Servlet web application (not a Jakarta Faces application)
This question was asked on Stack Overflow more than 12 years ago, and the answer was "No". Today, JSP is considered a deprecated technology, and Facelets has replaced it.
However, my ...
0
votes
2
answers
79
views
Importing JSP files from package
This is more of a general question, so it won't have a code example
I'm working on a Maven/Spring application that has several projects within it for different webpages
There is a commons package for ...
0
votes
1
answer
65
views
How to pass multiple parameter from view to controller using @PathVariable?
I would like to pass 4 parameter from view. It looks like this-
<button>
<a href="/generateDetails/${fromDate}/${toDate}/${shopList.shopId}/${billStatus}" target="_blank&...
0
votes
1
answer
70
views
Session data is lost after submitting a form in servlet application
I'm working on a java servlet application on reset password function. The get method basically check a parameter email and check if the email valid. Then set the email as an attribute in the session. ...
0
votes
2
answers
103
views
Why util.prefs.Preferences is not working in JSP script?
I have an example using java.util.prefs.Preferences store and get value from registry in windows server, this is my class.
//File Winreg.java
package oneconect;
import java.util.prefs.*;
public class ...
0
votes
0
answers
20
views
Unable to use c:forEach in my Spring MVC application [duplicate]
I have a query in my basic Spring MVC application as below.
I want to display the values from mysql database to my web application. For this, I'm using c:forEach in my .jsp file.
Note: I am using ...
0
votes
0
answers
28
views
Format the rendered output of a JSP tag
I am working to upgrade an app from Java 8 to Java 17. The app uses JSP for front-end.
I am running into issue with apache-taglib-string.jar
It has basic String formatting tags that encapsulate other ...
0
votes
1
answer
42
views
jakarta.servlet.ServletException: Error instantiating servlet class [task_8newStart.EmployeeServlet] [duplicate]
I am a beginner when workign with servlets.
I am creating a servlet, but after running it, I am getting this error.
Can anyone help me to resolve this?
jakarta.servlet.ServletException: Error ...
0
votes
1
answer
96
views
org.apache.jasper.JasperException: Unable to compile class for JSP: facing this issue while upgrading to tomcat 9
05-Feb-2025 13:18:08.986 SEVERE [http-nio-8080-exec-7] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/clover_portal] threw exception [...
0
votes
1
answer
60
views
Use JSP/Tag file in Java Tag Handler
I am trying to create a reusable module to display a table based off a list of objects passed to the JSP
Several of these lists are passed at a time, and each need to display their own table
The most ...
1
vote
0
answers
26
views
How do I get my legacy JSP backend to recognize UK-style dates from the frontend?
I am maintaining a very old Java Spring MVC JSP portal application with old JQuery on the front-end. To date it has only operated in the US. Now I am adapting it for UK users. So far, I have ...
0
votes
0
answers
25
views
Uncaught TypeError: Cannot set properties of undefined (setting '_DT_CellIndex') and the data table also not working
<table class="table datatable-basic table-bordered" id="mviewTable">
<thead>
<tr class="bg-blue-800">
...
-3
votes
1
answer
314
views
Having trouble with JSTL libraries in my java JSP Servlet project [duplicate]
enter image description here
[enter image description here](https://i.sstatic.net/mLxE5RhD.png)
I am using Eclipse IDE.
it is a web dynamic project JSP Servlet and JSTL.
Eclipse version: 2024-12 (4.34....
-1
votes
1
answer
93
views
Why do I get "[SQLITE_BUSY] The database file is locked"?
I keep getting:
Error: org.sqlite.SQLiteException: [SQLITE_BUSY] The database file is locked (database is locked)
whenever I check if a username is unique and subsequently add them into my database. ...
0
votes
0
answers
68
views
Execute JSP containing JavaScript in background
I have a logic to generate pdf written in js in my JSP.
AutoDownloadPDF.jsp:
setInterval(function() {
$.ajax({
type: "POST",
url: "GetInvoicesNo.jsp?EntityID=40&...
1
vote
1
answer
49
views
request.getParameter method gives null when form data submitted using javascript to servlet, why?
Here is form in JSP
<div class="col-lg-7">
<form action="FormServlet" method="post" id="contact-form" data-aos="fade-up" data-aos-delay=&...
0
votes
1
answer
76
views
Why the request is blocked when I sent data contained html tag and \n
I am using the Spring MVC and my task is to work with the backend and frontend only.
The system deployment and other distribution are handled by the other teams.
The problem I am facing is the Error ...
0
votes
1
answer
241
views
How can I connect frontend (React) and backend developed by Java without using web application?
I am asked to create a e-commerce website for my school project. The frontend part will be developed using React. The backend part must be developed using Java where web application framework, e.g. ...
0
votes
0
answers
16
views
alternate ideas for working with dynamically named html elements
I am creating .jsp page elements dynamically by looping through a table (say table tquestions with columns question_id and question_txt) using a <c:forEach> loop and creating label elements ...
0
votes
0
answers
162
views
Java Maven+Spring Project: JSP Webpage 404 Error
I've been having issues getting my JSP webpage to display on my browser when I execute my Spring Boot project.
I'm using Spring MVC to map my JSP with an application properties file and a main ...
0
votes
0
answers
67
views
java.lang.IllegalArgumentException: A null comparator has been passed to RowSorter using <display:table> in JSP
I have some code like this:
<sql:query var="task_work">
Select * from tasks
</sql:query>
<display:table name="${task_work.rows }" sort="list" id="...
0
votes
0
answers
56
views
how to retrieve item from Cart
I am buliding an online bookstore with JSP and servlet which allow the user to view books and add to cart then process to checkout, but when I add an item to my cart and then I click on view cart it ...