Re: Can you define variables as the value in struts.properties?

2012-06-18 Thread Łukasz Lenart
2012/6/18 Miguel Almeida : > Question: Having multiple environments files, what I really need is > struts.custom.i18n.resources=environments/app-${envName}. Can one have > this, so only the file that makes sense for that environment is loaded? But you can simply achieve that with Maven filtering s

Can you define variables as the value in struts.properties?

2012-06-18 Thread Miguel Almeida
Lets say I have the following files in my app: - app-DEV.properties - app-PROD.properties - app-TEST.properties I use Spring's and PropertyPlaceholderconfigurer (see [1]) to achieve a multi-environment setup. All files are in the classpath, but because on each environment I set the capitalized p

Re: Call action method from tag

2012-06-18 Thread vivek mishra
Thanks so much Dave.. Its working fine after turning on dynamic method invocation. You are a life saver.. :) Thanks! -- VM On 6/18/12, Dave Newton wrote: > It *does* understand that URL, but you need to have dynamic method > invocation turned on. > > Dave > > On Mon, Jun 18, 2012 at 11:35 AM, vi

Re: Call action method from tag

2012-06-18 Thread Dave Newton
It *does* understand that URL, but you need to have dynamic method invocation turned on. Dave On Mon, Jun 18, 2012 at 11:35 AM, vivek mishra wrote: > Hi Folks, > > I have different methods in my action class and I like to call > specific one from a link. > For this I am using tag for calling ac

Call action method from tag

2012-06-18 Thread vivek mishra
Hi Folks, I have different methods in my action class and I like to call specific one from a link. For this I am using tag for calling action class method: I then pass it to tag: While accessing on browser the url is formed like this: localhost:8080/project/TeamFeedback!init.action Struts

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-18 Thread Chris Pratt
I think the problem is that the French locale specifies that it should be written as "445.000,00" not "445,000.00". The parser expects localized input. (*Chris*) On Mon, Jun 18, 2012 at 7:06 AM, Łukasz Lenart wrote: > I think the problem is related to primitive converter which doesn't > inc

Struts2Builder 0.4.1 has been released

2012-06-18 Thread Thomas Sattler
Greetings all. Struts2Builder version 0.4.1 has been released. Struts2Builder is a Java code generation system that can automatically build a real, live, functioning Struts2 / Hibernate / Spring system for any existing PostgreSQL or MySQL database. Struts2Builder will log into the database, exam

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Hernán
I have tried with Struts 2.3.4 Spring 3.0.5.RELEASE and Spring Security 3.0.5.RELEASE and no success. I thing it's important to mention I'm using Tiles, this time 2.2.2, but I kept trying with Tiles 2.0.6 before and it was the same... What I can tell you to bear in mind is that /Start/Presentation

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Hernán
I was using Struts 2.3.4 Spring 3.0.6.RELEASE and Spring Security 3.1.0.RELEASE now I will try to use Spring Security 3.0 to see what happens. On Mon, Jun 18, 2012 at 11:12 AM, Hernán wrote: > Well I don't know what is the problem really and there is nothing in the > web, so it seems is somethin

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Hernán
Well I don't know what is the problem really and there is nothing in the web, so it seems is something new, I'll try to explain better so you can understand what I mean. This web app is in three languages, whenever you go to its URL, the "/" namespace has an action that redirects to a namespace /St

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Omar Ngarigari
I am using struts 2.3.1.2 version and also using simple theme. From: Maurizio Cucchiara To: Struts Users Mailing List Sent: Monday, June 18, 2012 10:01 AM Subject: Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction Could you specify your struts2 versio

Re: Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-18 Thread Łukasz Lenart
I think the problem is related to primitive converter which doesn't include Locale in conversion, take a look on that bug and related https://issues.apache.org/jira/browse/WW-3171 Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confi

Re: Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Maurizio Cucchiara
Could you specify your struts2 version? I have a lot of apps based on the stack you mentioned and I've never seen something similar. Did you investigate if it is a struts issue or is something related to the synergy with spring? Twitter :http://www.twitter.com/m_cucchiara G+ :https://

Struts 2 Spring 3 Spring Security 3.1 RedirectAction

2012-06-18 Thread Hernán
I have upgraded a webApp using struts 2 to use Spring 3 and Spring Security 3.1, before that Spring 2.5 and Spring Security 2 was used. The problem is that when using redirectAction I get a !Namespace?parameters#namespace added to the URL's and that is not a good idea... I need the URL without that

Struts2 : formatting and entering doubles consistently through the whole application not depending on locale

2012-06-18 Thread Pierre TEMPLIER
In a localized application with 2 languages : French and English. I want users to be able to enter (HTML ) doubles formatted the same way wether they are using english or french locale. i.e : - english_user enter "445,000.00" for orderItem.price and this data is correctly parsed to 445000.0d and pu

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Dave Newton
(I keep looking for the up-arrow so I can upvote mailing list answers.) On Mon, Jun 18, 2012 at 6:41 AM, Łukasz Lenart wrote: > 2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > > I use Struts2 Spring Plugin 2.1.6. > > That version was designed to run with Spring 2.5.3 and as specified in > docs [1] it

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > I use Struts2 Spring Plugin 2.1.6. That version was designed to run with Spring 2.5.3 and as specified in docs [1] it must work, maybe you're messing different versions of Spring libs ? [1] http://static.springsource.org/spring/docs/2.5.x/reference/beans

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Dave Newton
On Mon, Jun 18, 2012 at 6:07 AM, Nguyen Ngoc Hai (FSU17.BU2) < hai...@fsoft.com.vn> wrote: > I use Struts2 Spring Plugin 2.1.6. > You're using Struts 2.1.6 as well? This makes no sense; that attribute works fine in Spring 3.0. Probably not related, but I sure wouldn't use an old milestone relea

RE: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Nguyen Ngoc Hai (FSU17.BU2)
I use Struts2 Spring Plugin 2.1.6. Thanks & best regards, NGUYễN NGỌC HẢI (MR.) Developer Business Unit No2 FPT  Software Strategic Unit No.17 Add: 8th Floor, FPT Building, Pham Hung Road, Cau Giay Dist, Hanoi, Vietnam E-mail: hai...@fsoft.com.vn Cell: 0169.808.9435 IMPORTANT NOTICE The infor

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
Are you using Struts2 Spring Plugin ? http://struts.apache.org/2.x/docs/spring-plugin.html Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubs

RE: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Nguyen Ngoc Hai (FSU17.BU2)
When I added scope in eclipse, it said that "attribute scope must be declared for element bean", when I built ignoring this message, I got a 404 Not Found. This is kind of confusing, because I have read several example and they run scope well. Thanks & best regards, NGUYễN NGỌC HẢI (MR.) Develo

Re: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) : > I use Spring Framework 3.0 M3 hmm... scope="prototype" should work, what kind of exception do you get ? Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

RE: How to display 2 textfield while still being to use XML validation

2012-06-18 Thread Nguyen Ngoc Hai (FSU17.BU2)
I use Spring Framework 3.0 M3 Thanks & best regards, NGUYễN NGỌC HẢI (MR.) Developer Business Unit No2 FPT  Software Strategic Unit No.17 Add: 8th Floor, FPT Building, Pham Hung Road, Cau Giay Dist, Hanoi, Vietnam E-mail: hai...@fsoft.com.vn Cell: 0169.808.9435 -Original Message- From