RE: Adding interceptors through annotations

2008-06-16 Thread Gamble, Wesley (WG10)
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

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-13 Thread Gamble, Wesley (WG10)
-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

Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
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:

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
-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

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
: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

RE: Custom interceptor not firing

2008-06-10 Thread Gamble, Wesley (WG10)
: 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

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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

RE: How to set session data based on request parameters and how to retrieve session values correctly via OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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

Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
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

RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-10 Thread Gamble, Wesley (WG10)
;). 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

RE: How to force a default locale in Struts2?

2008-06-09 Thread Gamble, Wesley (WG10)
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

Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
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

RE: Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
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

RE: Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
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

Can one use the annotation action specification with Tiles?

2008-05-20 Thread Gamble, Wesley (WG10)
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

RE: Can one use the annotation action specification with Tiles?

2008-05-20 Thread Gamble, Wesley (WG10)
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

RE: Can one use the annotation action specification with Tiles?

2008-05-20 Thread Gamble, Wesley (WG10)
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