Skip to main content

Questions tagged [jsp]

JSP (Jakarta Server Pages, formerly JavaServer Pages) is a Java-based view technology running on the server machine which allows you to write template text in client side languages (like HTML, CSS, JavaScript and so on) and interact with backend Java code.

0 votes
0 answers
20 views

JSP Page corrupting after closing and re-opening eclipse

This is the second time this has occurred for me. The first one I wasn't sure if I had saved or not before closing Eclipse but this one I'm sure I've saved before closing it. So, after saving and ...
ScatteredDream's user avatar
0 votes
1 answer
34 views

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyTagSupport

I have the following code in a JSP file for the tags which is included in all of my JSP files at the top: <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> &...
Tan's user avatar
  • 1,537
-1 votes
0 answers
19 views

Spring JSP pass object from list to post-endpoint

I have a spring-controller with a post-endpoint that receives a WordDto. Another get-endpoint puts a list of WordDtos in the ModelMap and shows a jsp-file. In the jsp-file, I show each entry of the ...
Fi0x's user avatar
  • 138
1 vote
1 answer
35 views

Error: Missing Type HttpServletRequest in Maven Project for File Upload

Question: I am working on a Maven project for a file upload servlet and encountered an issue. When I try to parse the request using ServletFileUpload, I get the following error: The method ...
HKS11's user avatar
  • 11
-1 votes
0 answers
28 views

Java servlet path [closed]

I make a dynamic web project now. Because it was an exercise, I didn’t use the Maven project. I use Tomcat 10.1.25. webapp ├── html │ ├── index.html │ └── view.jsp ├── META-INF └── WEB-INF I ...
user23381600's user avatar
-1 votes
0 answers
65 views

Why is my JSP code with a switch expression not working?

I'm trying to run this JSP code but it doesn't work, I get HTTP Status 500. Why? Aren't switch expressions supported? I do not want to use a switch statement, so please do not tell me to use this old ...
Ignis's user avatar
  • 19
-1 votes
1 answer
47 views

In a JSP file use a form to call a method in a java file to create and then download a a csv file for the user [duplicate]

Having a hard time figuring out how to get my JSP file to trigger a method in my java while using a form. The method sends a query to a db, I want to take the result set from that query and turn in ...
Someone's user avatar
  • 31
-2 votes
0 answers
30 views

Jquery Datatable not working in the JSP file

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="...
Raj Bura gohain's user avatar
-1 votes
0 answers
39 views

Error with login session/cache using Servlets and JSP

I don't know how to describe the problem very well technically, but I'm making an application using Servlets and JSP and I'm having a specific user authentication problem. When I log in as a user with ...
mmicr0_nzs's user avatar
-1 votes
0 answers
38 views

Escaping outputs by default? [duplicate]

We are using an MVC arch and using JSP for view. Our codebase is a bit old and not many people focused on using escapeXML or c:out tags in JSPs which is causing a lot of XSS vulnerabilities now. We ...
Shubhankar Kumar's user avatar
1 vote
1 answer
69 views

How could I escape a value in custom JSP tag handler? [duplicate]

This is one of my field in one of my jsp file: <input class="form-input" id="login" type="text" name="login" <c:choose> <c:when test="${...
DoWhileFor's user avatar
-1 votes
0 answers
11 views

JSP redirection trough a servlet is not functioning as expected [duplicate]

Hey so i am running a program that when a cell on a board(on a jsp) is clicked, a servlet is launched, and that servlet can redirect to 1 of 2 jsp, my problem is that this redirection seems to not be ...
Letho123's user avatar
  • 127
0 votes
0 answers
23 views

get javascript table element in jsp [duplicate]

I'm using a jsp and I need to do something like this but it doesn't work, the elements of table doesn't show in my page and I tried to replace the extension of my jsp file into html and it works ...
Yaris Razafindramanana's user avatar
0 votes
0 answers
10 views

jsp <c:forEach table not generating [duplicate]

This is how I populate table public List<String[]> listTable = new ArrayList(); String[] foundPost = {"name", "nickName", "datePost", "subject", "...
Geoffrey Hebert's user avatar
-3 votes
0 answers
27 views

Unable to use JSTL with embedded tomcat, returns Http Status Code 500 [duplicate]

"The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application" I've scoured the web for hours trying various ...
bitcash complex's user avatar

15 30 50 per page
1
2 3 4 5
3466