If this is solely a cosmetic thing, why not make an index.jsp your
welcome file, and have it requestDispatcher.forward into your struts
framework....Put it in a bean if it makes you happy.
I haven't tried this, but I don't see why it wouldn't work....

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
Mark Woon
Sent: Friday, January 04, 2002 9:26 PM
To: Struts Users Mailing List
Subject: index.do as welcome file?


Mark Woon wrote:

> I've just started looking at Struts, and I'm trying to figure out how 
> to set an action as the default file for the webapp?  For example, I 
> have an index.do Action, and I'd like that served by default instead 
> of index.htm[l].  Is this possible?

After looking at the struts-config.xml DTD (thanks, Muthu!) , it looked
as if the unknown attribute would solve this problem, but a quick trial
of

    <action path="/index"
            type="test.IndexAction"
            unknown="true">
    </action>

showed that this isn't the solution that I'm looking for.  Am I doing
something wrong?  Is ther another way to go about this?

Thanks,
-Mark



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

Reply via email to