All Questions
4,885
questions
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) {
...
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.
...
-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"?&...
0
votes
0
answers
21
views
Request mapping on class and method both creating issue on returning view name from controller
i am working on spring mvc where i put mapping on controller class and also on method see the code below:
controller code:
@Controller
@RequestMapping("/role")
public class RoleController {
...
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
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 ...
2
votes
2
answers
324
views
Why JSP recompilation needs some time interval?
I'm using JSP (please do not mention Thymeleaf...) in spring boot 3.2.0 on M1 Mac, and I found that if I consecutively update the samea JSP file, the recompilation doesn't happen right away and the ...
0
votes
0
answers
17
views
org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.login_jsp [duplicate]
enter image description hereenter image description here
I've followed all the troubleshooting steps suggested on Stack Overflow, including comparing project settings, verifying library versions, ...
2
votes
1
answer
1k
views
Using jakarta instead of javax gives the error javax.servlet.jsp cannot be resolved to a type when using ${pageContext.response.locale} in JSP
Recently I started migrating my Spring Framework MVC project to Tomcat 10 and Jakarta and while doing this I am stuck with 1 strange error.
In my JSP file I usually had the following code:
<%@ ...
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 ...
0
votes
0
answers
75
views
Inadequate cookie attributes in spring application
In spring MVC application the cookie attribute- path is set to root(/) and should be configured with the cookie attribute path to a specific domain path.
In web.xml file made the below changes. But ...
-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-...
0
votes
2
answers
46
views
Spring MVC Java why are extra request params being added to my url?
I have a website, called website.com. I have a form which looks like this:
<form:form method="get" id="profileForm" modelAttribute="profile" onsubmit="...
-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>
...