All Questions
Tagged with jsp jakarta-ee
1,714
questions
0
votes
1
answer
128
views
Wildfly Jakarta EE 10 Multipart forms missing
In the process of upgrading from Wildfly 25 to Wildfly 27 (and beyond), we are no longer seeing multipart forms.
The request parts is null (see below at the bottom). So, I'm not sure where it is ...
0
votes
0
answers
864
views
Getting jakarta.ws.rs.NotFoundException: HTTP 404 Not Found error when attempting to navigate to JSP page from index
POM XL dependencies
<dependencies>
<!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-server -->
<dependency>
<groupId>org.glassfish....
0
votes
0
answers
80
views
How can I print page info in jsp files?
I want to print or get the jsp page info(Copyright 2023 by sean) but don't know how to do. Here is my jsp code script
<%@ page info="Copyright 2023 by sean" contentType="text/html;...
2
votes
2
answers
289
views
Eclipse IDE 2022-06, how to change template when create new JSP file?
I am using Eclipse IDE 2022-06 , Java/JDK 1.6, Windows 10 pro x64, Spring 2.5.6 .
I need encoding UTF-8 by default, not ISO-8859-1. I don't want edit many files, many time manually. How to change ...
8
votes
1
answer
14k
views
Migration to Jakarta EE: Unable to find taglib [c] for URI: [jakarta.tags.core] [duplicate]
I am trying to upgrade from Spring 5 to Spring 6 and get the following error:
Unable to find taglib [c] for URI: [jakarta.tags.core]
I have the following in my pom:
<dependency>
<...
1
vote
1
answer
265
views
jsp doesn't see an attribute transferred from servlet [duplicate]
can't find the cause of my problem the second day. I set attribute to request and forward to a jsp file. But when i try to get it from requestScope, i find out that there is no such attribute.
Look at ...
0
votes
0
answers
104
views
How to pass literal String array to jsp:attribute
I have a a JSP attribute in a JSP Tag file and I'm trying to pass it a literal String like {"Something", "Something else"} Is there anyway to do it?
This is the closest I've come ...
0
votes
0
answers
101
views
JSP include variable passing
Let's say I have a file called a.jsp which includes another file:
<%
String a = "Test";
%>
...
<%@include file="b.jsp"%>
...
The file b.jsp accesses the variable from ...
2
votes
1
answer
148
views
Use jsp include tag with "<%= ..." expression
Why is it not possible to combine a jsp include tag with an <%= ... %> expression?
<jsp:include page="pages/<%= element.convertToLowercase() %>.jsp"></jsp:include>
...
0
votes
0
answers
17
views
why does not the compiler give an error for non existence of try-catch block?
My question is why in the following JSP file when I write print(), the compiler does not give an error for not writing try-catch?
<ul>
<%
for (String food:foods)
out....
1
vote
1
answer
188
views
How to create a tag using TagSupport?
When I try to extend TagSupport - no class is found.
The only place were it is located is javax.servlet.jsp.tagext.TagSupport, but when I add the dependency - here is the exception I have.
What am I ...
0
votes
1
answer
145
views
Fail to load any resources from java EE application
I have a simple servlet and it works (it forward me to about.jsp file).
@WebServlet("/about")
public class AboutServlet extends HttpServlet
{
public void doGet(HttpServletRequest request,...
0
votes
1
answer
240
views
jakarta.servlet.ServletException: Exceeded maximum depth for nested request dispatches: 20
My application uses Servlet 5.0 and JSP. Everything was fine as long as I used the url template urlPatterns = {"/sample"} (without (*)) and was catching this url /sample?col=20
but when i ...
0
votes
0
answers
529
views
Can't run JSP files on Tomcat 9 : Unable to set last modified date for file
I use Eclipse 2020-03(4.15.0), Tomcat v9.0.53 with java 11.0.11 on ubuntu.
When I create a Dynamic Web Project everything works fine. When I try to use a JSP file, I got this error 500 (on every JSP ...
0
votes
0
answers
14
views
Simple servlet not working using @WebServlet [duplicate]
I am writing a simple servlet, as below
@WebServlet("/helloServlet")
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public ...