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 ...
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"%> &...
2 votes
3 answers
6k views

java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String in Struts' logic:equal tag

I have an error when I want to access my JSP page. My bean: public class BeChildren implements Serializable { ... private String isFilledChildren; .... /** * @param isFilledChildrenthe ...
-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 ...
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 ...
-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 ...
-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 ...
-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 ...
-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="...
-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 ...
-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 ...
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="${...
1 vote
2 answers
3k views

Why am I getting Cross-Site Scripting: Poor Validation on Struts call to a bean class

I scanned my application in HP Fortify and getting an issue Cross-Site Scripting: Poor Validation. I am using ESAPI library. I am getting this finding on a Struts application. <%@ taglib prefix=&...
-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 ...
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 ...

15 30 50 per page
1
2 3 4 5
3466