Re: struts2-jquery-plugin: form submit returns twice the submit and textfield

2012-02-29 Thread Mounir Benzid
Hi Dave, targets=formResult in s:aj is unnecessary in my case. Simply removing it solved the problem. Thanks! - Mounir Am 29.02.2012 00:50, schrieb Dave Newton: You update the div with the same jsp as the form, so you're adding the page to itself. d. (pardon brevity and typos, on cell)

Re: Security Vulnerability When Using SessionAware and Best Practice For Mitigating It

2012-02-29 Thread Łukasz Lenart
2012/2/28 bphill...@ku.edu bphill...@ku.edu: Lukasz - I agree with you, but until a new version of Struts 2 is released that includes a fix for this vulnerability, I'd like to tell Struts 2 developers what to do when implementing the SessionAware interface to mitigate the vulnerability. If

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
2012/2/29 Puneet Babbar 2 pbabb...@sapient.com: Thanks for replying to my post, I have already checked that link but still no clue as to how to make spring plugin work with the convention plugin. Suppose I have an Action  - @Action(/login-page) Did you try to use login-page ? Namespace /

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
Hi, there is no need to define a spring bean for your struts actions. At least when you use a struts.xml. I have not tried what happens when you use annotations. As far as I now, all struts actions will be created as prototypes by spring. If you define them in the applicationsContext.xml, they

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Per Pascal Grube
Hi, there is no need to define a spring bean for your struts actions. At least when you use a struts.xml. I have not tried what happens when you use annotations. As far as I now, all struts actions will be created as prototypes by spring. If you define them in the applicationsContext.xml, they

RE: Struts, spring integration while using struts annotations

2012-02-29 Thread Puneet Babbar 2
Tried after you suggested it, but doesn’t work :( -Puneet -Original Message- From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Wednesday, February 29, 2012 2:12 PM To: Struts Users Mailing List Subject: Re: Struts, spring integration while using struts annotations

RE: Struts, spring integration while using struts annotations

2012-02-29 Thread Puneet Babbar 2
The singleton bit can be managed by setting the appropriate scope while defining the actions as beans in applicationContext.xml. Regards Puneet -Original Message- From: Per Pascal Grube [mailto:pascal.gr...@rus.uni-stuttgart.de] Sent: Wednesday, February 29, 2012 2:15 PM To: Struts

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
2012/2/29 Puneet Babbar 2 pbabb...@sapient.com: Tried after you suggested it, but doesn’t work :( Did you try to debug SpringObjectFactory#buildBean methods ? Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura

Re: Struts, spring integration while using struts annotations

2012-02-29 Thread Łukasz Lenart
Maybe it is a bug, that way I asked to check that. 2012/2/29 Puneet Babbar 2 pbabb...@sapient.com: Haven't tried that till now, was hoping to get some tips from the community users. I am able to use the default auto-wiring done by the struts2-spring plugin, but not able to explicitly

Struts2 w/freemarker and internationalization

2012-02-29 Thread Tom Hjellming
I'm trying to internationalize a simple Struts2-based webapp that uses Freemarker as the view technology. The usage of freemarker templating pulling values from the Action object is working fine. But when I try to leverage Struts2's TextProvider capability via getText(), it doesn't work.

Re: Struts2 w/freemarker and internationalization

2012-02-29 Thread Josep García
Try with: p@s.text name=welcome.message//p Cheers, Josep 2012/2/29 Tom Hjellming thjellm...@gmail.com I'm trying to internationalize a simple Struts2-based webapp that uses Freemarker as the view technology. The usage of freemarker templating pulling values from the Action object is

Re: Security Vulnerability When Using SessionAware and Best Practice For Mitigating It

2012-02-29 Thread bphill...@ku.edu
Lukasz: Good idea on letting struts 2 developers know that instead of implementing the ParameterNameAware interface that they can change the excludeParams value as part of the package setup. So I'll add to my code example: package name=basicstruts2 extends=struts-default

Re: Struts2 w/freemarker and internationalization

2012-02-29 Thread Tom Hjellming
Thanks Josep - that works. I thought the ${} notation was equivalent to the @s form - but I guess not. thanks, Tom On 2/29/12 12:16 PM, Josep García wrote: Try with: p@s.text name=welcome.message//p Cheers, Josep 2012/2/29 Tom Hjellmingthjellm...@gmail.com I'm trying to

Struts 2 Twitter Bootstrap Plugin

2012-02-29 Thread Jeff Black
All: I hear tell of a Twitter Bootstrap plug-in for Struts 2. Does anyone know where it lives -- if it lives? jb

Re: Struts 2 Twitter Bootstrap Plugin

2012-02-29 Thread Łukasz Lenart
Here [1], enjoy :-) [1] http://code.google.com/p/struts2-bootstrap/ Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ 2012/3/1 Jeff Black jeffrey.bl...@yahoo.com: All: I hear tell of a Twitter