All Questions
Tagged with jsp spring-mvc
4,687
questions
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"%>
&...
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) {
...
-1
votes
1
answer
55
views
Spring MVC with Tomcat renders only index.jsp
The problem is that when i run my app with Tomcat it shows only index.jsp in browser. But controllers don't work.
Here's my web.xml file:
<?xml version="1.0" encoding="UTF-8"?&...
1
vote
1
answer
29
views
Neither BindingResult nor plain target object for bean name 'todooo' available as request attribute
While running the insert without validation it works, but when I added validation like targetdate must be future date and trying to show in form twoway binding, then this error started.
No idea on ...
1
vote
1
answer
48
views
Why ${message} appear as it is in View and not the real message passed in Spring MVC controller [duplicate]
I'm trying to learn Spring MVC and encountered an issue. Please see the attached code. I'm not getting the real message on View and instead ${message} on View. What could be the issue here?
This is ...
0
votes
1
answer
47
views
How to connect css and javascript in a .jsp file
I am having trouble connecting an external css and javascript file to its jsp.
I tried doing the WebConfig as I read on google but I realised that my jsp files' path are done via application....
0
votes
0
answers
354
views
Whitelabel Error Page This application has no explicit mapping for /error. While Making a GET Request using Spring MVC
I am attempting to construct a simple web page and making a GET Request using Spring MVC, and I have encountered this issue.
Whitelabel Error Page
This application has no explicit mapping for /error,...
0
votes
0
answers
77
views
Dropdown value not persisting after saving in Spring MVC
Question:
I am working on a Spring MVC application where I have encountered an issue with dropdown values not persisting after saving a form. Below is a simplified version of the code along with some ...
0
votes
0
answers
34
views
Why my javascript doesn't load into Spring Boot [duplicate]
I am currently working on a Java Spring boot project, everything is worked but excepted the JavaScript code.
Here is the JS code:
function handleFormSubmission(event) {
event.preventDefault();
...
0
votes
2
answers
130
views
Why the <form:hidden> value is set as empty?
On my default page, I have a hidden fields to set custody details. I've checked the HTML source and the values are coming as empty.
I tried to check if the controller itself is sending null data. But,...
1
vote
2
answers
1k
views
Swagger and Spring MVC (non-spring-boot)
I've been trying to add Springfox-Swagger UI 3.0.0 into a regular Spring MVC application with Spring Security (non-spring-boot) and cannot figure it out. I recently incorporated swagger-ui into 2 ...
0
votes
1
answer
51
views
Form submission is not accepting parameters
I have a form that contains a file input field and 2 buttons with name="action" and values as 'sign' and 'verify' respectively.
I am trying to get that file and parameter of buttons upon ...
-1
votes
1
answer
69
views
Spring mvc redirect from one controller to another works but another controller don't open page
The problem is following. I have one controller-class with post-method that redirect to another controller-class with get-method. In debugging mode i step into post-method then it redirect to get-...
-1
votes
1
answer
412
views
JSP is not rendering on Spring Boot version 2.7.15
I have a Spring Boot application running on Java 17 with packaging type war, but it does not render the jsp pages.
Here is my pom.xml file regarding spring dependencies:
<dependency>
...
0
votes
1
answer
549
views
Spring boot / Jsp exception - java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.homePage_jsp
I have a SpringBoot, JSP and Maven application running on app server. I restarted the server and application stopped working. On browser it's showing 404 error. Server logs showing this exception -
*...