Spring Maven Controller can't find my JSP pages Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live! Should we burninate the [wrap] tag?Sharing a configuration file between OSGi bundles in Apache Servicemix 4?Link CSS and Images to Spring MVC maven ProjcetSpring MVC: Controller RequestMapping working, but return always gives a 404cvc-complex-type.2.2: Element 'location' must have no element [children]IntelliJ + Spring Web MVCHow can we call requestmethod=POST method in Spring MVC?Understanding “globalValidator” in Spring MVCSpring.xml error configWhile deploying spring project I am getting dependency injection errorSolace Connectivity issue using Spring 4.x
Should I discuss the type of campaign with my players?
What is Arya's weapon design?
Output the ŋarâþ crîþ alphabet song without using (m)any letters
What exactly is a "Meth" in Altered Carbon?
How to call a function with default parameter through a pointer to function that is the return of another function?
Apollo command module space walk?
Can a non-EU citizen traveling with me come with me through the EU passport line?
What's inside the kernel part of virtual memory of 64 bit linux processes?
What causes the vertical darker bands in my photo?
Coloring maths inside a tcolorbox
If a contract sometimes uses the wrong name, is it still valid?
What does this icon in iOS Stardew Valley mean?
Why was the term "discrete" used in discrete logarithm?
Can a USB port passively 'listen only'?
Can an alien society believe that their star system is the universe?
What is a non-alternating simple group with big order, but relatively few conjugacy classes?
What does the word "veer" mean here?
Use BFD on a Virtual-Template Interface
Illegal generic type for instanceof when using local classes
How to answer "Have you ever been terminated?"
Is pollution the main cause of Notre Dame Cathedral's deterioration?
How to bypass password on Windows XP account?
In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?
Seeking colloquialism for “just because”
Spring Maven Controller can't find my JSP pages
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!
Should we burninate the [wrap] tag?Sharing a configuration file between OSGi bundles in Apache Servicemix 4?Link CSS and Images to Spring MVC maven ProjcetSpring MVC: Controller RequestMapping working, but return always gives a 404cvc-complex-type.2.2: Element 'location' must have no element [children]IntelliJ + Spring Web MVCHow can we call requestmethod=POST method in Spring MVC?Understanding “globalValidator” in Spring MVCSpring.xml error configWhile deploying spring project I am getting dependency injection errorSolace Connectivity issue using Spring 4.x
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm new to Spring + MVN.
I have right now a project with a Controller and I want to "connect" with JSP page. Here you have the Project Structure:

I have Web-servlet.xml which contains:
<beans xmlns = "http://www.springframework.org/schema/beans"
xmlns:context = "http://www.springframework.org/schema/context"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package = "com.ms.TicketsSystem" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property> </bean>
</beans>
And web.xml:
<web-app id = "WebApp_ID" version = "2.4"
xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Form Handling</display-name>
<servlet>
<servlet-name>Web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Web</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Controller:
@Controller
public class WebController
@RequestMapping(value="/add")
public String addTicket()
/*
TODO
*/
return "add";
And when I go to localhost:8080/add it is showing
Error resolving template [add], template might not exist or might not be accessible by any of the configured Template Resolvers
Any suggestions on what I'm doing wrong?
java spring maven jsp templates
add a comment |
I'm new to Spring + MVN.
I have right now a project with a Controller and I want to "connect" with JSP page. Here you have the Project Structure:

I have Web-servlet.xml which contains:
<beans xmlns = "http://www.springframework.org/schema/beans"
xmlns:context = "http://www.springframework.org/schema/context"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package = "com.ms.TicketsSystem" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property> </bean>
</beans>
And web.xml:
<web-app id = "WebApp_ID" version = "2.4"
xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Form Handling</display-name>
<servlet>
<servlet-name>Web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Web</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Controller:
@Controller
public class WebController
@RequestMapping(value="/add")
public String addTicket()
/*
TODO
*/
return "add";
And when I go to localhost:8080/add it is showing
Error resolving template [add], template might not exist or might not be accessible by any of the configured Template Resolvers
Any suggestions on what I'm doing wrong?
java spring maven jsp templates
add a comment |
I'm new to Spring + MVN.
I have right now a project with a Controller and I want to "connect" with JSP page. Here you have the Project Structure:

I have Web-servlet.xml which contains:
<beans xmlns = "http://www.springframework.org/schema/beans"
xmlns:context = "http://www.springframework.org/schema/context"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package = "com.ms.TicketsSystem" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property> </bean>
</beans>
And web.xml:
<web-app id = "WebApp_ID" version = "2.4"
xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Form Handling</display-name>
<servlet>
<servlet-name>Web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Web</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Controller:
@Controller
public class WebController
@RequestMapping(value="/add")
public String addTicket()
/*
TODO
*/
return "add";
And when I go to localhost:8080/add it is showing
Error resolving template [add], template might not exist or might not be accessible by any of the configured Template Resolvers
Any suggestions on what I'm doing wrong?
java spring maven jsp templates
I'm new to Spring + MVN.
I have right now a project with a Controller and I want to "connect" with JSP page. Here you have the Project Structure:

I have Web-servlet.xml which contains:
<beans xmlns = "http://www.springframework.org/schema/beans"
xmlns:context = "http://www.springframework.org/schema/context"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package = "com.ms.TicketsSystem" />
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property> </bean>
</beans>
And web.xml:
<web-app id = "WebApp_ID" version = "2.4"
xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Form Handling</display-name>
<servlet>
<servlet-name>Web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Web</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Controller:
@Controller
public class WebController
@RequestMapping(value="/add")
public String addTicket()
/*
TODO
*/
return "add";
And when I go to localhost:8080/add it is showing
Error resolving template [add], template might not exist or might not be accessible by any of the configured Template Resolvers
Any suggestions on what I'm doing wrong?
java spring maven jsp templates
java spring maven jsp templates
edited Mar 8 at 18:51
Pikachu the Purple Wizard
2,12661529
2,12661529
asked Mar 8 at 17:20
TiggreTiggre
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Template Resolver error suggests using Thymeleaf. Unless it was your intention to use it, try disabling it in your application properties file by using spring.thymeleaf.enabled=false
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068061%2fspring-maven-controller-cant-find-my-jsp-pages%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Template Resolver error suggests using Thymeleaf. Unless it was your intention to use it, try disabling it in your application properties file by using spring.thymeleaf.enabled=false
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
add a comment |
Template Resolver error suggests using Thymeleaf. Unless it was your intention to use it, try disabling it in your application properties file by using spring.thymeleaf.enabled=false
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
add a comment |
Template Resolver error suggests using Thymeleaf. Unless it was your intention to use it, try disabling it in your application properties file by using spring.thymeleaf.enabled=false
Template Resolver error suggests using Thymeleaf. Unless it was your intention to use it, try disabling it in your application properties file by using spring.thymeleaf.enabled=false
answered Mar 8 at 17:53
HadesHades
858
858
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
add a comment |
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
Thank you for suggestion! :) I will try to do it when I'm at home. I will inform you if it works.
– Tiggre
Mar 8 at 18:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55068061%2fspring-maven-controller-cant-find-my-jsp-pages%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown