This question already has answers here:
Set default home page via in JSF project (3 answers)
Closed 5 years ago.
I'm trying to let a welcome page displaying after running a dynamic web project. When googling I found a lot of tutorials but I can't found the solution. I share:
The structure of my project (I want that the page welcome.xhtml will displayed by default).
The file web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
HiSpring
welcome.xhtml
State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2
javax.faces.STATE_SAVING_METHOD
client
javax.servlet.jsp.jstl.fmt.localizationContext
resources.application
com.sun.faces.config.ConfigureListener
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
/faces/*
Run code snippetExpand snippet
Once clicking on HiSpring > Run As > Run on Server, I should have This url: http://localhost:8080/HiSpring/faces/welcome.xhtml. However, I got http://localhost:8080/HiSpring/.
Could you please tell me what I missed; Thanks in advance.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)