Christian Nelson | 4 Dec 06:05

Re: Question about stripes spring integration

I wrote a simple Stripes interceptor for injecting Spring managed dependencies into Stripes actions using Spring's annotations instead of those in Stripes.  I think it's more consistent and flexible, not to mention it's more familiar if you're already using Spring's annotations.  We've used it on a few pet projects and one production project an it works like a charm.

http://blog.carbonfive.com/2008/03/java/injecting-spring-25-beans-into-stripes-actions
 
If you're using Spring 2.5 you should consider giving it a try.  Maybe one day it'll be included as part of Stripes.

Cheers,
Christian

On Sun, Nov 16, 2008 at 11:39 AM, Alex Turner <armtuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hmmm - whats weird is that my other DAOs that are being injected are fine.

On Sun, Nov 16, 2008 at 2:26 PM, Alex Turner <armtuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
The spring integration seems to work great for simple cases, but I'm running into a case where my dependency is not injected.  My main action bean is CreateTrifoldBrochureActionBean, and this is a subclass of ProductActionBean.  ProductActionBean has spring inject beans in it, but they don't appear to be getting injected.  When I check the injected object to see if it is null, it is :(.

Is this known behaviour or am I doing something wrong?

Alex

--
Christian Nelson -- (e) cnelson-QjVyNl5kmlk@public.gmane.org -- (m) 415-378-3988
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users
Mike McNally | 3 Dec 17:17

Interceptor invocation order

When Interceptors are picked up via the Extension feature, is it the
case that ordering of invocation is determined by class name? I'll
check the source but I get dizzy in there sometimes and I might get
confused.

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alan Burlison | 3 Dec 11:05
Favicon

Re: Preventing __fsk being added to redirects

Alan Burlison wrote:

> Yes, that's the problem.  I tried setting the flash scope to null on the 
> RedirectResolution to stop it, but that just causes a NPE.

Found the cause: calling ctx.getMessages() or ctx.getValidationErrors() 
triggers the creation of the Flash Scope even if no messages or errors 
are subsequently added to them.  I was fetching these at the top of the 
action and assigning them to a variable, then using them in the message 
& error handling code later on in the method.

I think there's a possible RFE here:

Flash Scope should not be saved unless it is non-empty.

Thoughts?

--

-- 
Alan Burlison
--

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Lionel | 3 Dec 11:02

Re: Chart Libraries

Philip Constantinou wrote:
> One other option is Google Charts:
>
> http://code.google.com/apis/chart/
>
> I haven't done more than a few experiments but it's produced good
> results.

Your customers allow you to send their highly confidential reporting datas 
to google ?

JFreechart is quite easy  to use, but have a really ugly rendering quality 
compared to other solutions.
I like the rendering of flash components (open flash chart 2) but have never 
used them yet.
Did someone try them ? 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Mike McNally | 2 Dec 18:08

Re: Preventing __fsk being added to redirects

If you don't want the request parameters forwarded, you can tell the
redirect resolution object not to include them. (In other words are
you sure that that parameter isn't the one that came in on your form?)

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
kriko | 2 Dec 17:09

Re: casting

It works now!

Thank you.

On Tue, 02 Dec 2008 16:53:01 +0100, Freddy Daoud <xf2697@...>  
wrote:

> You need to tell Stripes to use MyAppActionBeanContext, either
> by configuring the package in Extension.Packages in web.xml, or by
> specifying MyAppActionBeanContext (with its package) in the
> ActionBeanContext.Class parameter.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>

--

-- 
kriko

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Asleson, Ryan | 1 Dec 19:33

Re: Chart Libraries


I'm using Google Charts with Stripes and like it so far.  One nice thing about Google Charts: The CPU and
memory actually needed to render the chart image is done on Google's CPU and memory, not yours. 

-----Original Message-----
From: Philip Constantinou [mailto:pconstantinou <at> evernote.com] 
Sent: Monday, December 01, 2008 10:22 AM
To: Stripes Users List
Subject: Re: [Stripes-users] Chart Libraries

One other option is Google Charts:

http://code.google.com/apis/chart/

I haven't done more than a few experiments but it's produced good results.

On Dec 1, 2008, at 7:55 AM, Evgeny Shepelyuk wrote:

> Hello guyz
>
> +1 on this approach :)
>
>> Hi Ross,
>>
>> I am currently using JFreeChart+JCommon and it is working well.
>> You don't even need a plugin, you can just return a 
>> StreamingResolution and use:
>>
>> JFreeChart chart = ...;
>> ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, 
>> width, height);
>>
>> in the public void stream(HttpServletResponse response) method.
>>
>> Hope that helps.
>>
>> Cheers,
>> Freddy
>> http://www.stripesbook.com
>>
>> On Mon, 1 Dec 2008 10:11:29 -0500, "Ross Sargant"
>> <rsargant <at> tvrc.com>
>> said:
>>> Hi,
>>>  My question is not specifically stripes related but I was wondering 
>>> if  any stripes developers have any experience with charting 
>>> libraries. I have taken a look but there are so many available I'm 
>>> not sure where to start.
>>> Cewolf/JFreeChart looks like an easy starting pointing but cewolf 
>>> looks like a dead project with no recent updates.
>>>
>>> I'm using a custom jetty+spring+stripes "container" (no java EE). My 
>>> views are plain vanilla JSP pages using the stripes tag library 
>>> (including layout tags). I'm looking for a solution that would fit 
>>> into that environment without signficant changes.
>>>
>>> Appreciate any assistance you can provide.
>>>
>>>
>>> Ross Sargant
>>>
>>> TVR Communications LLC
>>> Software Engineer
>>> 3275 W Hillsboro Blvd,Suite 300,Deerfield Beach, Florida,33442
>>>
>>> http://www.tvrc.com
>>>
>>> p: 954-571-2017 x2108
>>>
>>> email: rsargant <at> tvrc.com
>>
>> ---------------------------------------------------------------------
>> ---- This SF.Net email is sponsored by the Moblin Your Move 
>> Developer's challenge Build the coolest Linux based applications with 
>> Moblin SDK & win great prizes Grand prize is a trip for two to an 
>> Open Source event anywhere in the world 
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
>
> --
> Написано в почтовом клиенте браузера
> Opera: http://www.opera.com/mail/
>
>
> ----------------------------------------------------------------------
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge Build the coolest Linux based applications with Moblin SDK & 
> win great prizes Grand prize is a trip for two to an Open Source event 
> anywhere in the world 
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based
applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential
information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by phone or reply by e-mail, delete the original message
and destroy all copies. Thank you.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users
Levi Hoogenberg | 1 Dec 20:03

Re: Chart Libraries

Something that may or may not be a disadvantage of using Google Charts is that you have to be on line to be able to use it.

On Mon, Dec 1, 2008 at 5:22 PM, Philip Constantinou <pconstantinou <at> evernote.com> wrote:
One other option is Google Charts:

http://code.google.com/apis/chart/

I haven't done more than a few experiments but it's produced good
results.


On Dec 1, 2008, at 7:55 AM, Evgeny Shepelyuk wrote:

> Hello guyz
>
> +1 on this approach :)
>
>> Hi Ross,
>>
>> I am currently using JFreeChart+JCommon and it is working well.
>> You don't even need a plugin, you can just return a
>> StreamingResolution
>> and use:
>>
>> JFreeChart chart = ...;
>> ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart,
>> width,
>> height);
>>
>> in the public void stream(HttpServletResponse response) method.
>>
>> Hope that helps.
>>
>> Cheers,
>> Freddy
>> http://www.stripesbook.com
>>
>> On Mon, 1 Dec 2008 10:11:29 -0500, "Ross Sargant"
>> <rsargant <at> tvrc.com>
>> said:
>>> Hi,
>>>  My question is not specifically stripes related but I was
>>> wondering if
>>>  any
>>> stripes developers have any experience
>>> with charting libraries. I have taken a look but there are so many
>>> available
>>> I'm not sure where to start.
>>> Cewolf/JFreeChart looks like an easy starting pointing but cewolf
>>> looks
>>> like
>>> a dead project with no recent updates.
>>>
>>> I'm using a custom jetty+spring+stripes "container" (no java EE). My
>>> views
>>> are plain vanilla JSP pages using the stripes tag library (including
>>> layout
>>> tags). I'm looking for a solution that would fit into that
>>> environment
>>> without signficant changes.
>>>
>>> Appreciate any assistance you can provide.
>>>
>>>
>>> Ross Sargant
>>>
>>> TVR Communications LLC
>>> Software Engineer
>>> 3275 W Hillsboro Blvd,Suite 300,Deerfield Beach, Florida,33442
>>>
>>> http://www.tvrc.com
>>>
>>> p: 954-571-2017 x2108
>>>
>>> email: rsargant <at> tvrc.com
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win
>> great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
>
> --
> Написано в почтовом клиенте браузера
> Opera: http://www.opera.com/mail/
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users
Gregg Bolinger | 1 Dec 18:57

Re: Chart Libraries

Just as an FYI, a friend of mine has a release for Cewolf that is the same code base as the original project but with some fixes he's included to make up for the fact that the project had gone stale.

http://www.ulfdittmer.com/code/cewolf.html

Gregg

On Mon, Dec 1, 2008 at 10:22 AM, Philip Constantinou <pconstantinou <at> evernote.com> wrote:
One other option is Google Charts:

http://code.google.com/apis/chart/

I haven't done more than a few experiments but it's produced good
results.


On Dec 1, 2008, at 7:55 AM, Evgeny Shepelyuk wrote:

> Hello guyz
>
> +1 on this approach :)
>
>> Hi Ross,
>>
>> I am currently using JFreeChart+JCommon and it is working well.
>> You don't even need a plugin, you can just return a
>> StreamingResolution
>> and use:
>>
>> JFreeChart chart = ...;
>> ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart,
>> width,
>> height);
>>
>> in the public void stream(HttpServletResponse response) method.
>>
>> Hope that helps.
>>
>> Cheers,
>> Freddy
>> http://www.stripesbook.com
>>
>> On Mon, 1 Dec 2008 10:11:29 -0500, "Ross Sargant"
>> <rsargant <at> tvrc.com>
>> said:
>>> Hi,
>>>  My question is not specifically stripes related but I was
>>> wondering if
>>>  any
>>> stripes developers have any experience
>>> with charting libraries. I have taken a look but there are so many
>>> available
>>> I'm not sure where to start.
>>> Cewolf/JFreeChart looks like an easy starting pointing but cewolf
>>> looks
>>> like
>>> a dead project with no recent updates.
>>>
>>> I'm using a custom jetty+spring+stripes "container" (no java EE). My
>>> views
>>> are plain vanilla JSP pages using the stripes tag library (including
>>> layout
>>> tags). I'm looking for a solution that would fit into that
>>> environment
>>> without signficant changes.
>>>
>>> Appreciate any assistance you can provide.
>>>
>>>
>>> Ross Sargant
>>>
>>> TVR Communications LLC
>>> Software Engineer
>>> 3275 W Hillsboro Blvd,Suite 300,Deerfield Beach, Florida,33442
>>>
>>> http://www.tvrc.com
>>>
>>> p: 954-571-2017 x2108
>>>
>>> email: rsargant <at> tvrc.com
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win
>> great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
>
> --
> Написано в почтовом клиенте браузера
> Opera: http://www.opera.com/mail/
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users
Freddy Daoud | 1 Dec 16:39
Favicon
Gravatar

Re: Chart Libraries

Hi Ross,

I am currently using JFreeChart+JCommon and it is working well.
You don't even need a plugin, you can just return a StreamingResolution
and use:

JFreeChart chart = ...;
ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, width,
height);

in the public void stream(HttpServletResponse response) method.

Hope that helps.

Cheers,
Freddy
http://www.stripesbook.com

On Mon, 1 Dec 2008 10:11:29 -0500, "Ross Sargant" <rsargant@...>
said:
> Hi,
>   My question is not specifically stripes related but I was wondering if
>   any
> stripes developers have any experience
> with charting libraries. I have taken a look but there are so many
> available
> I'm not sure where to start.
> Cewolf/JFreeChart looks like an easy starting pointing but cewolf looks
> like
> a dead project with no recent updates.
> 
> I'm using a custom jetty+spring+stripes "container" (no java EE). My
> views
> are plain vanilla JSP pages using the stripes tag library (including
> layout
> tags). I'm looking for a solution that would fit into that environment
> without signficant changes.
> 
> Appreciate any assistance you can provide.
> 
> 
> Ross Sargant
> 
> TVR Communications LLC
> Software Engineer
> 3275 W Hillsboro Blvd,Suite 300,Deerfield Beach, Florida,33442
> 
> http://www.tvrc.com
> 
> p: 954-571-2017 x2108
> 
> email: rsargant@...

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Mike McNally | 30 Nov 17:51

Re: Web service API, Stripes

> It seems a bit convoluted: a Filter works explicitly on a HTTP request; not
> on a derviate like SOAP. It's probably easier to create a protocol handler
> specific to each protocol, and have that handle the call to an ActionBean.

I did not explain myself well. The filter might do nothing at all with
the information in the request, though it might have to handle the
authentication part. That aside, all it would do is package up the
request content so that an ActionBean written to handle it would be
coded to accept one (or more, I guess) FileBean parameters. The
ActionBean would be responsible for interpreting and acting on the
request content.

For my application it is likely to be the case that only one protocol
would ever exist, at least for the authentication. On another
application (servlet-based) the authentication header is universal,
while the "protocol" (file formats for uploads, request formats for
downloads) may indeed vary. My feeling here is that the filter itself
would only pay attention to the authentication header, and then
package up the rest of the request's content as a single file
parameter. (It's true that if the protocol/format had some file
separator semantics that the filter would have to know that. I have in
mind that the filter would use some URL pattern queues to make
decisions about things like that.)

Thanks for your response; it is definitely the case that I may be
terribly wrong :)

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane