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.

1 vote
1 answer
51 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
66 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
49 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
1 answer
60 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
1 vote
1 answer
93 views

Can't use external css styling with jsp [duplicate]

I'm just trying to learn servlets and using JSP files. I would like to do the format of the start page (/login page) with external css file but I didn't manage to do that. It works with internal css ...
DoWhileFor's user avatar
0 votes
0 answers
19 views

when user login the system,if he hasn't operated a long time,how to logout the system and skip to login page

I want to achieve this function:when user login the system,if he hasn't operated a long time,how to logout the system and skip to login page? I use a filter class which implements Filter,and when ...
rain-sh's user avatar
  • 11
1 vote
1 answer
27 views

How to display data from Maria DB in a jsp file

I want to put data values ​​from db into employee class and then display all values ​​in jsp file. However, an error continues to occur saying that the list is empty. Employee.java package employee; ...
ekgus's user avatar
  • 11
0 votes
0 answers
24 views

No 'OLE' editor registered against the type of file you were trying to open

In Spring Tool Suite 4, when I try to open a '.jsp' file, it is not showing the syntax highlight. I tried to open the '.jsp' file as 'Open With' -> 'In-Place Editor', I get the following Error. ...
Shankar Raj's user avatar
0 votes
0 answers
17 views

Checkmarks issue in JSP [duplicate]

Check marks is flagging cross site scripting issue in the below code. can you please help me in resolving the issue. Code in JSP: <a href="javascript:getData('${sta.Date}','${sta.EndDate}');&...
Vishnu's user avatar
  • 1
0 votes
0 answers
9 views

Checkmark flagging an issue with Crosssite scripting [duplicate]

Checkmark is flagging a cross site scripting issue in JSP. This is the issue checkmark displaying: The method "javascript:getdata() embeds untrusted data in generated output with BinaryExpr, at ...
Vishnu's user avatar
  • 1
0 votes
1 answer
43 views

JSP page unable to get attribute from a Servlet with and without .getSession

I have a web app that must get the city name and, by an API request, it should give the foirecast for that city. But in the JSP file I am not able to get a variable with getAttribute from the ...
Ghost's user avatar
  • 11
0 votes
0 answers
34 views

Getting java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator in my Java Web Application project [duplicate]

I'm working on a Java web application and I'm encountering the following exception when I try to deploy my project: java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator at ...
shivam sharma's user avatar
0 votes
0 answers
9 views

get client's machine name from weblogic JSP page [duplicate]

I have uploaded JSP page on WebLogic server to retrieve client machine name but it returns WebLogic server host name, I have used Host Name:<%=request.getRemoteHost()%>. I have to retrieve ...
Ramesh Turi's user avatar

15 30 50 per page