Fantastic, thank you! I'll have to go have a look at the logging options you mentioned... that will answer another question I had, which was about the fact that I kept getting an annoying "properly initialize the Log4J system" when I started my app. My startup plugin was initializes Log4J, but I know that Struts via commons logging is trying to initialize it, just weird that it's not doing so properly (maybe a version mismatch?), but if I can somehow specify the logging options as init params to ActionServlet (i.e., where my config XML file is located), so much the better.


From: Hubert Rabago <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Catch-all ActionMapping?
Date: Tue, 25 May 2004 13:02:20 -0700 (PDT)


--- None None <[EMAIL PROTECTED]> wrote:
> First, can anyone explain the settings of the debug and detail init params
> of ActionServlet? I haven't been able to dig up any good detail. The best


I believe the "debug" setting has been deprecated in favor of log settings
for commons-logging (or whatever logging implementation you're using).

> What I mean is, is it possible to say something like "Ok, if no mapping
> is
> found that matches the request, forward to page xxxx"?


Specify 'unknown="true"' for your catch-all action mapping. To forward to a
jsp, do something like:


<action path="/index"
        type="org.apache.struts.actions.ForwardAction"
        parameter="index.jsp"
        unknown="true"/>


- Hubert





__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

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


_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/



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



Reply via email to