Yes, you can't use a .do action for the welcome pages. This is because web.xml is "lower" down than the struts stuff. The web.xml also configures the strust controller servlet to intercept anything ending with .do. If you think about this you can understand how, at the web.xml leve, there's no meaning to the .do yet. The "best practice" is to put an index page that contains only a redirect to your first struts action ( your entry point, logon.do or something like that )
--- On Mon 01/23, David Thielen < [EMAIL PROTECTED] > wrote: From: David Thielen [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Mon, 23 Jan 2006 11:39:39 -0700 Subject: RE: A couple of simple questions Asking again - thanks - dave-----Original Message-----Hi;1) I want my default page to be index.do so I set the following in web.xml: <welcome-file-list> <welcome-file>index.do</welcome-file> </welcome-file-list>But instead I get a directory of files in my root when I go to the servlet.I can do this which works: <welcome-file-list> <welcome-file>index.txt</welcome-file> </welcome-file-list>It appears it wants a file. Not an issue (see item 2) but just wanted toknow what is going on.2) My main page is a frameset. I tried having that be a do/jsp but when Ipressed refresh on the browser, it went back to the start page. So I made ita html file and the three frames are .do urls. This works fine, I'm justasking if this is the best way to do this.3) I need to have a method called when my servlet first loads. Is alistener the best way to do this?Thanks - dave---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]