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
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
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
--
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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'
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-
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
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
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.
(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
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);
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.
25 matches
Mail list logo