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.

jsp
-1 votes
0 answers
33 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
34 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
62 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
10 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
34 views

Failed to load resource: the server responded with a status of 404 (). in java servlet [closed]

[enter image description here](https://i.sstatic.net/e8oiecSv.png) [enter image description here](https://i.sstatic.net/XIgTjSvc.png) [enter image description here](https://i.sstatic.net/Z4EfBA5m.png) ...
LTP's user avatar
  • 1
-3 votes
0 answers
24 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
1 vote
1 answer
37 views

How to send a redirect after generating a file download in Servlet

I'm developing a web page using Java Servlets and JSP. I have functionality where, depending on the received action (action), different operations are performed. However, I'm encountering an issue ...
Carlos Odette DLCL's user avatar
0 votes
0 answers
15 views

Unable to compile class for JSP: The method prs(java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest) in the type Htmlforms [duplicate]

I upgraded from Apache Tomcat 9 to 10, but when I uploaded my project (developed a few years ago) I got the following error An error occurred at line: [9] in the jsp file: [/index.jsp] The method prs(...
Sandy998's user avatar
0 votes
1 answer
63 views

404 error when redirecting to Servlet from a html page [duplicate]

So I'm trying to create a WebApp on InteliJ Ultimate about a telecom website and I wanna get familiar with servlets but i can't get them to work properly <!DOCTYPE html> <html> <head>...
Tetoros21Bill's user avatar
0 votes
0 answers
46 views

Controller unable to pass model values to View page [duplicate]

My viewEmployees method in Controller @Autowired private EmployeeDao employeeDao; @GetMapping("/employees") public String viewEmployees(Model model) { ...
Yogesh Pandey's user avatar
0 votes
1 answer
47 views

How to put files to out/artifacts the JSP file is not generated

How to put files to out/artifacts the JSP file is not generated. Project structure: The JSP file shown in the figure is not generated. I can only put manually copied files into the out/artifacts ...
FLX's user avatar
  • 13
-1 votes
0 answers
40 views

Images in my project not showing in website

I have done many ways to connect my images and css files to my index.jsp. But it is still not working. The only fix i did is that i put my css codes in the index.jsp itself. Now, my only problem is ...
MartinCannotCode's user avatar
-1 votes
1 answer
59 views

I want to send data using ajax when the value comes out in jsp

The value comes out from jsp. However, I don't know how to send the value as ajax data. I tried to print the jsp value and change it, but it failed. What should I do? What should I put in the data in ...
seullbee Lee's user avatar

15 30 50 per page
1
2 3 4 5
3468