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,
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
-
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,
I knew I had interacted with the runtime configuration before. Just
found the code...
RuntimeConfiguration runtimeConfiguration =
ConfigurationManager.getConfiguration().getRuntimeConfiguration();
ActionConfig actionConfig =
runtimeConfiguration.getActionConfig("",
actionIn
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
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ó:
> >
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,
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
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
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
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.
---
11 matches
Mail list logo