[S2] Struts Interceptor to refresh Spring Security Context

2009-11-16 Thread Relph,Brian
Hi, I am writing an interceptor that will re-populate the spring security context. For example, this will allow me to annotate my ChangePasswordAction with @Refresh, so after invocation, the SecurityContext will also contain the changed password. To do this, my interceptor needs a copy of

[S2] json plugin + junit plugin

2009-07-15 Thread Relph,Brian
Is there a reason the json plugin has a compile-time dependency on the junit plugin? Is it just a test dependency perhaps? I would like to exclude the junit plugin from my webapp, but I don't want to break anything down the line. Brian Relph

[S2] xwork + spring-test

2009-07-15 Thread Relph,Brian
Is there a reason xwork has a compile-time dependency on spring-test? Is it just a test dependency perhaps? I would like to exclude spring-test from my webapp, but I don't want to break anything. Brian Relph --

RE: Problem getting request parameters in HTTP GET in Struts 2

2009-03-17 Thread Relph,Brian
First, the post you referenced had a follow up a few days later, and the custom mapper was not actually needed, there was instead a bug in the oracle app server that was fixed in a later release. Second, let struts handle the type conversion for you. You don't need to convert from a string

[S2] Param tag with collection value

2009-02-27 Thread Relph,Brian
Hello, I would like to construct an action url with a collection-valued parameter, i.e.: http://host/context/search.action?names=NAME1names=NAME2 Is there an easy way to do this? I was trying: s:url action=startRuleSearch id=search s:param name=names

RE: Incorrect Bean Injected

2009-01-16 Thread Relph,Brian
Did you try setting the value=none? Brian Relph -Original Message- From: Timothy Orme [mailto:to...@genome.med.harvard.edu] Sent: Friday, January 16, 2009 10:41 AM To: Struts Users Mailing List Subject: Re: Incorrect Bean Injected So scratch that, I figured out that Struts is set to

[S2] ActionValidatorManager configuration

2008-12-10 Thread Relph,Brian
Hello, I would like to change the ActionValidatorManager that is being used in the ValidationInterceptor. It appears that the DefaultActionValidatorManager gathers all of the Validators and puts them in a list that has a parent-first type ordering, where if you have Animal and Dog extends

RE: [S2] Plugin architecture

2008-11-19 Thread Relph,Brian
your app. I could be completely off-base, I wasn't involved with writing the plugin, I am just trying to regurgitate memories from the discussion on [EMAIL PROTECTED] Maybe Musachy can chime in. -Wes On Tue, 2008-11-18 at 14:00 -0600, Relph,Brian wrote: That plugin looks promising

RE: [S2] Plugin architecture

2008-11-19 Thread Relph,Brian
Don, is the Archiva port available in anywhere, maybe a sandbox? Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 10:20 AM To: Struts Users Mailing List Subject: RE: [S2] Plugin architecture The source is viewable here

[S2] Plugin architecture

2008-11-18 Thread Relph,Brian
Hello, I am trying to build a struts2 app that has support for plugins - not a struts2-plugin - but more like an additional set of functionality for the app itself. The plugins would be uploadable, need to have an isolated classpath, and contribute both actions and views, and be able to add

RE: [S2] Plugin architecture

2008-11-18 Thread Relph,Brian
worthwhile. -Wes On Tue, Nov 18, 2008 at 11:10 AM, Relph,Brian [EMAIL PROTECTED] wrote: Hello, I am trying to build a struts2 app that has support for plugins - not a struts2-plugin - but more like an additional set of functionality for the app itself. The plugins would be uploadable, need

RE: [S2] JSON plugin parser error

2008-11-13 Thread Relph,Brian
Mailing List Subject: Re: [S2] JSON plugin parser error the problem will be when you try to access that map using javascript. On Tue, Nov 11, 2008 at 8:38 PM, Relph,Brian [EMAIL PROTECTED] wrote: I have an object that is related to a set of other objects. I suppose I could make 2 maps both

[S2] JSON plugin parser error

2008-11-11 Thread Relph,Brian
Hello, I am trying to use the JSON plugin in my struts2 application. I am getting a parser error on the string returned from the server. I think the plugin is having problems converting my Map to JSON. Here is my object that I am trying to convert to JSON: public class RoleDetails extends

RE: [S2] JSON plugin parser error

2008-11-11 Thread Relph,Brian
: Tuesday, November 11, 2008 6:42 PM To: Struts Users Mailing List Subject: Re: [S2] JSON plugin parser error Using objects as keys is probably not a good idea. musachy On Tue, Nov 11, 2008 at 6:25 PM, Relph,Brian [EMAIL PROTECTED] wrote: Hello, I am trying to use the JSON plugin in my struts2

Struts Authorization Interceptor

2008-08-16 Thread Relph,Brian
Hello, I have recently integrated my struts2 apps with spring security for authentication. We use an implementation of CAS for single-sign-in/out. I am now looking to add authorization, and I was wondering if anyone had implemented an authorization interceptor with spring-security, and how

Struts Authorization Interceptor

2008-08-14 Thread Relph,Brian
Hello, I have recently integrated my struts2 apps with spring security for authentication. We use an implementation CAS for single-sign-in/out. I am now looking to add authorization, and I was wondering if anyone had implemented an authorization interceptor with spring-security, and how

RE: Struts 2.0 and RAD 7.0

2008-05-21 Thread Relph,Brian
And your web.xml? Brian Relph -Original Message- From: achandra [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 10:07 AM To: user@struts.apache.org Subject: Re: Struts 2.0 and RAD 7.0 Hi Guys, Thank you for such a prompt response. I am uploading two MS word document. One

RE: HTML renders incompletely

2008-05-20 Thread Relph,Brian
I think you should start with making your markup valid. There is a free service to do so: http://validator.w3.org/ Looking at your html, I can see several problems that can cause missing fragments (especially in ie6): 1) Unclosed tags- link rel='stylesheet' href='css/default.css'

RE: Struts 2.0 and RAD 7.0

2008-05-20 Thread Relph,Brian
When you say you are using RAD 7.0, do you mean you are running a Struts2 app on a Websphere Application Server? If so, what version of Websphere are you running? Can you also post the stack trace for your error messages, along with your struts.xml Brian Relph -Original Message-

RE: Struts 2 and Sitemesh

2008-05-16 Thread Relph,Brian
Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm

RE: Struts 2 and Sitemesh

2008-05-16 Thread Relph,Brian
You might try this: page:applyDecorator name=theDecorator s:action name=footer executeResult=true / /page:applyDecorator You can also reference this issue: https://issues.apache.org/struts/browse/WW-2079 Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL

RE: Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Relph,Brian
The actions are auto-wired by name by default - so if any of its properties match bean-ids in your spring config, and they have setters, then those properties will get set. The part about declaring the dependencies means you disable the auto-wiring, and declare your actions as spring beans.

RE: struts.xml

2008-04-03 Thread Relph,Brian
(servletContext, testConfig); dispatcher.init(); Dispatcher.setInstance(dispatcher); -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 9:48 AM To: Struts Users Mailing List Subject: RE: struts.xml You need to have access

RE: struts.xml

2008-04-03 Thread Relph,Brian
You need to have access to the Dispatcher and the ServletContext in your tests, but you could do something like this for per-unit test configurations: ConfigurationProvider provider = new StrutsXmlConfigurationProvider( struts-test.xml, true, servletContext);

RE: any struts 2 unit testers out there?

2008-04-03 Thread Relph,Brian
I recommend creating an action context. Here is the basic guide I followed to do so: http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ If you are not using spring or the struts2 spring plugin, you can cut out all the code around the applicationContext.