Enavigo

Take lemons, make lemonade or Jill and Yuval’s Musings

Enavigo header image 5

Jetty 6 welcome file: how to use a servlet to handle your welcome file

November 21st, 2008 No Comments

I ‘ported’ my Java web application from Tomcat to Jetty. Like any web application, I defined a ‘welcome file’ in the application’s web.xml file. The welcome-file directive specifies the URL to be loaded by default when someone requests the root of your application. The welcome file may be just a file or a JSP, e.g. [...]

  • Share/Bookmark

Tags:   · · · ·

Deploying a web application to Jetty

August 29th, 2008 5 Comments

The Jetty web application server is great. It is just not very well document and when it is documented it is aimed for the very uninitiated. If you’re using Jetty, it is almost like an old boys club – ‘you made it’. Still, it appears that Jetty and Tomcat are becoming much more similar in [...]

  • Share/Bookmark

Tags:   · · · · · · · · · ·

Setting up Spring MVC welcome page without rewrites or redirection

May 23rd, 2008 No Comments

So you have a Spring MVC web application and want to make sure that when the user enters a URL such as http://www.myawesomedomain.com he/she will see the home page of your application. How do you get Spring MVC’s RequestDispatcher servlet, which acts as the traffic cop and then some for your web application, to act [...]

  • Share/Bookmark

Tags:   · · · · · ·