struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saul Qunming Yuan" <y...@dataanvil.com>
Subject Re: Struts and welcome-file-list
Date Mon, 12 Feb 2007 02:42:29 GMT
Hi,

I think the welcome file has to be a physical file or a servlet defined in web.xml. You can
define your welcome file as index.jsp and in your index.jsp file just forward to your index.do.
Something like: <jsp:forward page="/index.do" />

HTH,
Saul


  ----- Original Message ----- 
  From: Nicolas Laplante 
  To: user@struts.apache.org 
  Sent: Sunday, February 11, 2007 10:29 PM
  Subject: Struts and welcome-file-list


  My website's homepage is the index action: /index.do.

  In web.xml, I configured the welcome-file-list like this:

  <welcome-file-list>
          <welcome-file>index.do</welcome-file>
  </welcome-file-list>

  When I access the application with no action or filename, I get the 
  directory listing. It is not serving the homepage as configured in the 
  above snippet.

  How can I tell the container to serve index.do when no filename is provided?

  Nicolas Laplante

  ---------------------------------------------------------------------
  To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
  For additional commands, e-mail: user-help@struts.apache.org


  --------------------------------
  Spam/Virus scanning by CanIt Pro

  For more information see
  http://www.kgbinternet.com/SpamFilter.htm

  To control your spam filter, log in at
  http://filter.kgbinternet.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message