Questions tagged [welcome-file]

67 questions
2
votes
3 answers

Struts 2 Default Page

I have a a web application using struts two that can access a action by literally typing it into the URL localhost/project/index.action but it won't redirect to this default action without explicitly typing it in. localhost/project/ gives the…
9er
  • 1,604
  • 3
  • 20
  • 37
2
votes
2 answers

How to get init parameter of servlet at web.xml from welcome jsp page?

I created index.jsp page and binded path /index to it in web.xml. It's also displayed when accessing the root of application as welcome page. It has three init parameters. The problem is I can access then from JSP code by config.getInitParameter()…
2
votes
2 answers

Use redirect instead of forward on

In my web.xml file, I configured: index.xhtml It means, when I type a URL www.domain.com, index.xhtml file is used to render. But when I type www.domain.com/index.xhtml, the…
Lost Heaven 0809
  • 396
  • 2
  • 7
  • 23
2
votes
2 answers

JSF page as welcome-file is not found by Tomcat and ends up in 404

Well, when i try to access my page in this way: http://XXX.XXX.XXX.XX:8080/Odontonew I got the error: type Status report message /Odontonew/ description The requested resource (/Odontonew/) is not available. But if i try to acces in this…
Shelly
  • 1,035
  • 5
  • 27
  • 51
2
votes
1 answer

How to set JSF welcome file in Spring-MVC and JSF mixed web application

I am working on a web project that both Spring MVC 3.1.1 and Primefaces 3.4.2 are mixed together. Spring MVC is used to serve REST services(using URL annotations) and PrimeFaces is used for user interfaces. So naturally, I have one configuration…
iso_9001_
  • 2,655
  • 6
  • 31
  • 47
2
votes
3 answers

Using the project's name to access the home page

In my web application I have to write the URL of the web application and specify the home.jsp page that I want to be the home page, I want to know how I can access the the application in the browser just by typing the project's root folder name. I…
LeandreM
  • 943
  • 3
  • 12
  • 24
2
votes
1 answer

How to show full page URL of welcome file in address bar

I have "/pages/index.xhtml" page. The problem is when i run the application, this index page name doesn't appears at address bar. It only shows http://localhost:8080/myApplication/. What I want to see is…
Turgut Dsfadfa
  • 775
  • 6
  • 20
  • 42
1
vote
1 answer

JSP Welcome file issue

I have given my welcome file in web.xml But when running my spring application, it is showing 404 error on http://localhost:8080/web_customer_tracker/ I use IntelliJ IDEA, GlassFish 5.0.0, index.jsp file is directly under web folder and web.xml is…
user7729696
1
vote
1 answer

Access the value of welcome-file-list in web.xml

Is there any way of accessing the welcome-file-list element in the web.xml without having to re-parse the web.xml itself?
Evan Knowles
  • 7,426
  • 2
  • 37
  • 71
1
vote
1 answer

Use of welcome-file-list, why can we specify a list if it would run only one?

In my JSF application welcome file is set to index.xhtml. My doubt is, when more than one welcome file is given, which one is run? If only the first welcome file runs, why do we have which allows multiple welcome files?
prem
  • 71
  • 1
  • 6
1
vote
2 answers

Why is my struts annotation redirection not working?

I would like to redirect to fail.jsp when i type my root url (localhost:8081/). Here is my java class Root : @Namespaces(value={@Namespace("/User"), @Namespace("/")}) @Result(location="/fail.jsp") @Actions(value={@Action(""),…
Aod Ren
  • 681
  • 1
  • 8
  • 17
1
vote
2 answers

Error with Annotation in servlet 3.x

this is my path home and my servlet ,I declare urlpattern belows @WebServlet(urlPatterns="/home") and forward to file homeview.jsp RequestDispatcher dispatcher =…
Hung Huy
  • 15
  • 4
1
vote
1 answer

Custom motd.tcl does not show at startup

I follow this tutorial in order to modify the ssh welcome message of my server, but when I ssh, I have no message at all... Here is some informations: /etc/motd.tcl is executable ➜ ~ ls -l /etc/motd.tcl -rwxr-xr-x 1 root root 3687 oct. 11 10:31…
iBadGamer
  • 566
  • 6
  • 22
1
vote
2 answers

How To Set Up Spring MVC webapp to use DispatcherServlet AND have a default page of index.html

OK, this is getting ridiculous. I asked basically this question a couple of days ago and got nowhere with it. I've tried all sorts of suggestions from all sorts of web pages and none gets me where I want to be. I've been all over the execrable…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
1
vote
0 answers

Other .md files not appearing in Visual Studio Online

I am wondering if this is a bug. I have a Readme.md file showing in VSO. However my other files dont show. One of them is called test.md. Here are some screen shots: any ideas?
RuSs
  • 1,725
  • 1
  • 29
  • 47