Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
-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}" ...
runnerpaul's user avatar
  • 7,558
-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 ...
runnerpaul's user avatar
  • 7,558
-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> ...
runnerpaul's user avatar
  • 7,558
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....
Henschel lungu's user avatar
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-...
Nathan S's user avatar
-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 ...
Sumedh Kudale's user avatar
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 ...
Nathan S's user avatar
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"...
RBP's user avatar
  • 485
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 ...
Swati's user avatar
  • 214
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 ...
Hector's user avatar
  • 11
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 <%@ ...
Ashish's user avatar
  • 11
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 ...
user1729354's user avatar
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 ...
code_warrior's user avatar
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 ...
Pravin kumar's user avatar
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, ...
Viishwaas Sinha's user avatar
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, ...
Borea Deitz's user avatar
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&...
Lorenzo Tirotta's user avatar
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, ...
sachyy's user avatar
  • 622
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 ...
Gina_Linetti's user avatar
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....
Frrug's user avatar
  • 1
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. ...
Ahtisham Shaikh's user avatar
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....
Thom's user avatar
  • 15.3k
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 ...
kaushiksarangi26's user avatar
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=...
carles's user avatar
  • 174
0 votes
0 answers
37 views

Not able to resolve: Caused by: jakarta.servlet.jsp.JspTagException: Illegal use of &lt;when&gt;-style tag without &lt;choose&gt; 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: ...
Umesh Chauhan's user avatar
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 ...
sephiroth's user avatar
  • 133
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 ...
Madhavan's user avatar
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 ...
LemongrabThree's user avatar
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 ...
LHA's user avatar
  • 9,715
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 ...
Nathan S's user avatar
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&...
R1f4t's user avatar
  • 1
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. ...
Hibiki Supersanta's user avatar
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 ...
VOIP INDOCHINA's user avatar
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 ...
Tester's user avatar
  • 1
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 ...
Anirudh Giran's user avatar
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 ...
Simeon Valchev's user avatar
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 [...
Jeganth R R's user avatar
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 ...
Nathan S's user avatar
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 ...
Ron DeSantis's user avatar
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"> ...
Sujit's user avatar
  • 1
-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....
user29184944's user avatar
-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. ...
Reina297's user avatar
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&...
rizuwan's user avatar
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=&...
Pravin Zugare's user avatar
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 ...
rensothearin's user avatar
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. ...
51tths's user avatar
  • 1
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 ...
warrenjb's user avatar
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 ...
CheeseBalls's user avatar
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="...
Ugito's user avatar
  • 1
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 ...
DRAMANE KAMISSO DIAKITE's user avatar