I use a filter to catch requests that map to "/" and request my Homepage.do action instead. So I don't have any index.html or index.jsp page at all.

I think the 2.3 spec wants some sort of file to map to.

I did hear of one person who set the <welcome-file> to 'index.do' and put a dummy index.do file in there (with a note that it was a dummy and not to delete). The web container was happy because there was a file there called 'index.do'.

Since Struts is mapped to process *.do, the person defined an action called 'index' and struts could do its normal processing, forwarding off to the .jsp in /WEB-INF/.

I don't know if that is portable amongst containers though.

Pat Quinn wrote:

I'm using tiles and i know i can't set the <welcomefile/> attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this?

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




--
Jason Lea


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to