> 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 )
Well, there's a cheap way to do this. First, include this in your web.xml (make sure *.do is mapped to the appropriate Struts servlet): <welcome-file-list> <welcome-file>index.do</welcome-file> </welcome-file-list> Then create a blank file named "index.do" for each path you want struts to handle the index page. The servlet engine will never get to displaying the file (though it will trigger processing due to its presence), as the Struts servlet will pick it up and pass it to an appropriate action (path /whatever/index) and allow you to process it however you wish. The key is the blank index.do file. Alternately, if you'd rather a more complex web.xml config, you can leave index.jsp as a welcome-file and map each instance to the Struts servlet. I prefer the former though. seth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]