Dave is correct, you can configure your interceptors with XML and then
define @ParentPackage in your annotations to point to the name of your
Struts package.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 15, 2008 1:23 PM
To: Struts Users Mailing List
-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2008 1:41 AM
To: Struts Users Mailing List
Subject: Re: Dynamically pulling in tile definitions based on session
attributes using OGNL
2008/6/10 Gamble, Wesley (WG10) [EMAIL PROTECTED
All,
I set up a custom interceptor, but it is not being invoked.
As far as I can tell from looking at _Struts 2 in Action_, I constructed
my class correctly. It is named CompanyIdentificationInterceptor.
My struts.xml file now has this configuration in it to accommodate this
new interceptor:
-Original Message-
From: Gamble, Wesley (WG10) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2008 1:22 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Custom interceptor not firing
My struts.xml file now has this configuration in it to accommodate this
new interceptor
:00 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Custom interceptor not firing
Hi,
2008/6/10 Gamble, Wesley (WG10) [EMAIL PROTECTED]:
As far as I can tell from looking at _Struts 2 in Action_, I
constructed
my class correctly. It is named CompanyIdentificationInterceptor
: Tuesday, June 10, 2008 2:00 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Custom interceptor not firing
Hi,
2008/6/10 Gamble, Wesley (WG10) [EMAIL PROTECTED]:
As far as I can tell from looking at _Struts 2 in Action_, I
constructed
my class correctly. It is named
on request parameters and how
to retrieve session values correctly via OGNL
Hello!
2008/6/10 Gamble, Wesley (WG10) [EMAIL PROTECTED]:
1) I would like to set some session key-value pairs in response to a
request parameter so that I can count on these session variables
throughtout my application
Should ActionInvocation.getInvocationContext().getParameters() give me a
Map of request parameters or do I need to pull the HttpServletRequest
object in another way?
I've seen some code online where the HttpServletRequest gets pulled.
Thanks,
Wes
All,
Struts 2.0.11.1
Tiles 2.0.6
Is the following valid in a given JSP fragment/Tile?
I'm trying to use the companyId attribute of my session to help define
the name of a Tile definition.
Assuming that session has a companyId attribute, of course.
tiles:insertDefinition
;).
Wes
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2008 4:41 PM
To: Struts Users Mailing List
Subject: Re: Dynamically pulling in tile definitions based on session
attributes using OGNL
--- On Tue, 6/10/08, Gamble, Wesley (WG10) [EMAIL PROTECTED
I read further in the _Struts 2 in Action_ book and it indicates that
there is a session parameter that is set with the current locale.
So it appears that the request_locale parameter must be set specifically
to switch between locales.
Wes
-Original Message-
From: Lukasz Lenart
All,
If I have a Struts action, and I acquire the session map via:
Map session = ActionContext.getContext().getSession();
can I simply use
session.put(new_key, new_value);
to modify session attributes or do I need to do something different?
Thanks,
Wes
Huh?
-Original Message-
From: Felipe Lorenz [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2008 5:37 PM
To: Struts Users Mailing List
Subject: Re: Modifying session attributes in Struts 2
nothing diferent.. just it.
On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) [EMAIL
right... just do what you did say!
On Mon, Jun 9, 2008 at 7:52 PM, Gamble, Wesley (WG10) [EMAIL PROTECTED]
wrote:
Huh?
-Original Message-
From: Felipe Lorenz [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2008 5:37 PM
To: Struts Users Mailing List
Subject: Re: Modifying session
All,
Can I use the Struts 2 annotation - style of specifying action results
to set a tile name as the target for a Struts action? In my testing,
I've been unable to, although I have successfully done it with the XML
action specification in struts.xml. My suspicion is that perhaps the
specification with Tiles?
You're not specifying the result type, so it's trying to use
dispatcher results, which aren't Tiles-aware (obviously :)
Dave
--- Gamble, Wesley (WG10) [EMAIL PROTECTED] wrote:
Can I use the Struts 2 annotation - style of specifying action
results
to set a tile name as the target
It's interesting is that the default=true attribute in the
result-types element in struts.xml doesn't seem to influence
annotation-based results specification like it does for the XML
configuration.
In XML, if I set default=true on result-types, I don't need to specify
a Tiles result at the
17 matches
Mail list logo