Re: Getting context properties

2007-11-30 Thread Pablo Vázquez Blázquez
Thank you very much for your help! I want to know it as the following: If the user types in the url box: "http://localhost:8080/app/action.do"; and is not logged-in and "action.do" requires authentication, then I redirect him/her to an authentication form. Well, I do this with an interceptor,

Re: Getting context properties

2007-11-29 Thread Gary Affonso
Dave Newton wrote: Why do you want it? That's a good question for Dave to be asking. Even though you now know how to get it, are you really sure you want it? The framework shields you from this data for a reason. :-) - Gary -

Re: Getting context properties

2007-11-29 Thread Gary Affonso
Hrmm. I fear I have sent you on a wild goose chase. After further exploration, I can't see how you can get core app-configuration properties through the RuntimeConfiguration. It looks like there are really two sets of configuration data in S2, config data for executing the actions (actions,

Re: Getting context properties

2007-11-29 Thread Gary Affonso
I knew I had interacted with the runtime configuration before. Just found the code... RuntimeConfiguration runtimeConfiguration = ConfigurationManager.getConfiguration().getRuntimeConfiguration(); ActionConfig actionConfig = runtimeConfiguration.getActionConfig("", actionIn

Re: Getting context properties

2007-11-29 Thread Gary Affonso
Pablo Vázquez Blázquez wrote: Hello, How can I red my application name and the actions' extension? For example: http://localhost:8080/scheduler-admintool-1.0/Workspace.do I'd need a code to get "scheduler-admintool-1.0" and "do" from the context. The first part ("scheduler-admintool-1.0") sh

Re: Getting context properties

2007-11-29 Thread Dave Newton
AFAIK this is not trivially available, although I haven't dug too deeply. Why do you want it? d. --- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > Thanks to all, > > what I want to read is > "StrutsConstants.STRUTS_ACTION_EXTENSION" property. > > > Pablo Vázquez Blázquez escribió: > >

Re: Getting context properties

2007-11-29 Thread Pablo Vázquez Blázquez
Thanks to all, what I want to read is "StrutsConstants.STRUTS_ACTION_EXTENSION" property. Pablo Vázquez Blázquez escribió: Please, it must be very simple but I´m not able to find the suitable classes which should contain that information. Regards. Pablo Vázquez Blázquez escribió: Hello,

Re: Getting context properties

2007-11-29 Thread Martin Gainty
Difficult to determine without looking at the code, web.xml, struts.xml and properties M-- - Original Message - From: "Pablo Vázquez Blázquez" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, November 29, 2007 6:05 AM Subject: Re: Getting con

Re: Getting context properties

2007-11-29 Thread Wes Wannemacher
I use 'request.getContextPath()' to get the app's name/path when I need it. I've never needed the extension though, so I can't help you there. -W On 11/29/07, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > Please, it must be very simple but I´m not able to find the suitable > classes which s

Re: Getting context properties

2007-11-29 Thread Pablo Vázquez Blázquez
Please, it must be very simple but I´m not able to find the suitable classes which should contain that information. Regards. Pablo Vázquez Blázquez escribió: Hello, How can I red my application name and the actions' extension? For example: http://localhost:8080/scheduler-admintool-1.0/Works

Getting context properties

2007-11-28 Thread Pablo Vázquez Blázquez
Hello, How can I red my application name and the actions' extension? For example: http://localhost:8080/scheduler-admintool-1.0/Workspace.do I'd need a code to get "scheduler-admintool-1.0" and "do" from the context. Thanks. ---