This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Eclipse "web.xml" entry point?

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must be missing something.

I have an Eclipse Web Application that runs on my Tomcat. It started up ok with no problem but I am seeing a blank screen.

Am I supposed to expect to see the "index.jsp" showing up on my Browser as the first entry point?

On my web.xml:



My Tomcat runs on localhost and my Eclipse project name is "Original". After the startup, my Browser was on the http://localhost/Original/index.jsp page which is blank.

Any ideas will be very much appreciated.


 
Bartender
Posts: 2657
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mimi,
You will have more luck on the IDE forum.
Regards, Jan
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To give an answer to this question we have to look at the code of index.jsp file as well as the whole web.xml file. Also we dont know the index.jsp file shows some static things or gets some parameters from some other things. So without knowing all these things its very difficult to answer anything.
 
Bartender
Posts: 21766
148
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Webapps don't have "entry points", and web.xml isn't an executable page, so you can't enter it, anyway.

However, webapps do have the concept of a "home page", and the welcome page in web.xml is designed to support that idea by indicating which page should be displayed if someone enters a URL for the webapp that doesn't contain a specific page request. It's common for that page to be an "index.html" or "index.jsp" page, but it can be anything. Well, almost anything. It can't be a framework request with servler routing such as a Struts or JSF page request. For that you have to forward from a non-framework page.

You should be able to request the welcome page directly in your browser. For example: "http://myhost.mydomain:8080/mywebapp/index.jsp". If you can't do that, your welcome page is defective. If you can do that, and the URL "http://myhost.mydomain:8080/mywebapp" doesn't pull up the index.jsp, then your web.xml file is incorrect.
 
I am Arthur, King of the Britons. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!