Re: Spring Security

2011-03-31 Thread Jason Ferguson
Here a Basics of Spring Security 3 presentation I gave at the St Louis Java User group, but didn't have much time to go into securing objects. http://www.slideshare.net/jasonferguson1/spring-security-3 On Thu, Mar 31, 2011 at 12:31 PM, CRANFORD, CHRIS wrote: > If anyone here has experience with

Re: Authorization and Authentication

2011-03-18 Thread Jason Ferguson
I did a presentation on Spring Security for the local Java User Group, available at http://www.slideshare.net/jasonferguson1/spring-security-3. However, it won't replace the actual documentation, which I found to be very high quality. On Fri, Mar 18, 2011 at 11:11 AM, Alessio Bandini wrote: > Tha

Re: Urgent excepton: java.lang.reflect.InvocationTargetException

2011-03-14 Thread Jason Ferguson
I've often found InvocationTargetException to be masking something else. Look at every log you can possibly find. On Mon, Mar 14, 2011 at 5:23 PM, abhishek jain wrote: > On Tue, Mar 15, 2011 at 2:46 AM, Dave Newton wrote: > >> On Mon, Mar 14, 2011 at 5:14 PM, abhishek jain >> wrote: >> > Also i

Re: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
1. Yes. The LoginAction is annotated with @Namespace("/login"), and the register() action is annotated with @Action(value="register"). 2. I'm not sure what you're saying. Since StrutsTestCase initializes this to a new object, why do I need to check for null? On Sat, Mar 12, 2011 at 7:43 PM, Marti

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
(Sorry, hit the wrong key combination and hit send without meaning to...) I am attempting to do some out-of-container testing of a Struts Action which extends StrutsSpringTestCase. I've tried configuring the application context two separate ways: via the @ContextConfiguration annotation and by ove

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
I am attempting to do some out-of-container testing of a Struts Action which extends StrutsSpringTestCase. I've tried configuring the application context two separate ways: via the @ContextConfiguration annotation and by overriding getContextLocations()

Unable to Load Configuration

2011-03-12 Thread Jason Ferguson
I'm trying in the middle of converting an app from struts 1.3 to 2.2.1.1. I'm trying to run the app using the Maven jetty plugin, but am getting the following Exception thrown on attempting to execute mvn jetty:run: 2011-03-12 07:49:53.447:WARN::Failed startup of context JettyWebAppContext@a63bd d

Re: Spring 3 Upgrade

2010-12-02 Thread Jason Ferguson
I had no trouble with it. On Thu, Dec 2, 2010 at 5:08 PM, Zoran Avtarovski wrote: > I just wanted to check if there were any issues with upgrading spring to > version 3 with struts 2.2.1? > > I notice the complete download still has Spring 2.5 libraries. > > I'd appreciate any feedback from peopl

Re: binding paramters in struts2 without the form

2010-11-29 Thread Jason Ferguson
Struts will not automatically populate fields based on parameters passed via the URL. Your action will need to implement the ParameterAware interface, and the setParameters(Map parameters) method. Then you can use the map to populate your fields. Jason On Mon, Nov 29, 2010 at 5:25 AM, maven apach

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread Jason Ferguson
Here is a javascript formatter I used when I tried this. I found the solution hideously ugly and ended up going to a straight jQuery solution. function makeButton(clickAction, text) { return "" + text + ""; } Jason On Tue, Oct 19, 2010 at 1:58 PM, Johannes Geppert

Re: Implement Edit and Delete function in Struts jQuery Grid

2010-10-16 Thread Jason Ferguson
I'll second this. I've gotten to the point where I am only using the tags to include jquery in my app, and hand-code everything else. Jason On Sat, Oct 16, 2010 at 11:28 AM, Dave Newton wrote: > This is one reason why I think it's almost always better to just use > the raw framework: to reitera

Re: Reduce Java Script Depecency in Struts 2

2010-10-06 Thread Jason Ferguson
I've tried the jquery plugin, but it just doesn't work for me. A bug in publishing and subscribing to topics had been ignored on the Google Groups site for it since July, but once I just wrote the straight jquery code it worked fine. I also didn't want to resort to Javascript to put content into a

Excluding Fields From JSON Serialization via Annoations

2010-10-03 Thread Jason Ferguson
I have a class called BorderPoint with about 5 fields (including an id field and two ManyToOne hibernate fields). When I return the JSON, there is a large collection of BorderPoints (often over 1000). I'd like to exclude everything but two float fields from the JSON serialization, if only to make

ParentPackage Annotation

2010-09-25 Thread Jason Ferguson
I'm using the JSON plugin to manage my actions that require JSON response as well as the convention plugin. However, I've Googled until my eyes were about to find out and couldn't find the answer to this question: Can the @ParentPackage annotation accept more than one argument (i.e. both "struts-d