Conversion problem String / float

2010-07-01 Thread Stephane Cosmeur
Hello struts users We are facing a strange problem. We submit a form with textfields which contain some float numbers. When the entity is loaded the numbers appears in the textfield like this : x.x But when we submit the form, it is the input result which is returned. If we change the numbers

Re: Conversion problem String / float

2010-07-01 Thread Stephane Cosmeur
. On Thu, 2010-07-01 at 15:04 +0800, Stephane Cosmeur wrote: Hello struts users We are facing a strange problem. We submit a form with textfields which contain some float numbers. When the entity is loaded the numbers appears in the textfield like this : x.x But when we submit the form

Re: Encrypting parameters

2010-06-03 Thread Stephane Cosmeur
is anyways not allowed. Combined with HTTPS this will give you good enough protection against eavesdropping. But, to protect data access, you would still need to enforce some access control on the data based on the user credentials. cheers, Rahul Mohan From: Stephane Cosmeur cosm...@gmail.com

Re: Encrypting parameters

2010-06-03 Thread Stephane Cosmeur
practise and not a tool or a plugin that can be used ad-hoc. Also if You will use such a practise You will find that You don't need to care about hiding parameters, because it is not important at all. Best greetings, Paweł Wielgus. 2010/6/3 Stephane Cosmeur cosm...@gmail.com: Thank you for your

Encrypting parameters

2010-06-02 Thread Stephane Cosmeur
Hello, I would like to improve the security of my web application. My problem is I would like to encrypt the visible parameters in the URL to prevent user to change it to access data he should not see. At start i thought the simple attribute encode of s:url will work for what i need, but it's not

Create / Edit Form, Best practices

2010-05-18 Thread Stephane Cosmeur
Hello, My question is quite simple : what are the best practices to manage the edit and create form who often are exactly the same. Do you usualy create two jsp ? Do you call an action who check if the object is in the DB or not. Maybe some people use two diffrent action with two submit (seems

Re: Create / Edit Form, Best practices

2010-05-18 Thread Stephane Cosmeur
(id); } return INPUT; } On Tue, May 18, 2010 at 21:02, Stephane Cosmeur cosm...@gmail.com wrote: Hello, My question is quite simple : what are the best practices to manage the edit and create form who often are exactly the same. Do you usualy create two jsp ? Do you call

Autocompleter positioning porblem

2010-05-14 Thread Stephane Cosmeur
Hey Struts 2 users i'm facing problem with a s:autocompleter. There is the definition s:autocompleter id=employeeAutucompleter list=employees headerKey=0 headerValue=-- Please Select -- listKey=id listValue=lastName keyName=employeeSelected label=To / Firstly i tried to use they key

Generic search pop up

2010-05-05 Thread Stephane Cosmeur
Hello struts users ! I am building a web application whose users will often need to search many diffrent kind of entity. To find it they will have the choice between to click on the element through a table (not really convinient when there are many entity) or to find it by a search on the name

Struts 2 and dynamics web page

2010-04-29 Thread Stephane Cosmeur
Hello Struts 2 Users, I would like to call an action when an envent onchange from a s:select component is dispatched. According to the selected value I would like to load data in a form in order to modify it after. To do that i would like to call a Struts 2 action with AJAX, is it posible and is

Basic security problem

2010-04-15 Thread Stephane Cosmeur
Hello struts users I have a really basic security problem and i would like to know what is the best practice to resolve it. I have an application with an authentification system and diffrent rights for diffrent type of user. To add or remove a link/fonctionnality, we simply declarate the element

Re: Basic security problem

2010-04-15 Thread Stephane Cosmeur
to your stack on all protected actions. Cimballi On Thu, Apr 15, 2010 at 9:39 PM, Kun Niu haoniu...@gmail.com wrote: You should check the authentication all by yourself in your action. Stephane Cosmeur wrote: Hello struts users I have a really basic security problem and i would

Re: Populate s:select with a Map

2010-04-13 Thread Stephane Cosmeur
I tried this as well : s:select label=Select company type list=mapTypeCompanyENUM headerValue=-- Please Select --/ Regards, On Tue, Apr 13, 2010 at 12:51 PM, Stephane Cosmeur cosm...@gmail.comwrote: Hello I know my problem is quite common but i can't figure out by google and myself

Re: Populate s:select with a Map

2010-04-13 Thread Stephane Cosmeur
; } //Others getters and setters } On Tue, Apr 13, 2010 at 2:50 PM, Stephane Cosmeur cosm...@gmail.com wrote: I tried this as well : s:select label=Select company type list=mapTypeCompanyENUM headerValue=-- Please Select --/ Regards, On Tue, Apr 13, 2010 at 12:51 PM, Stephane

Populate s:select with a Map

2010-04-12 Thread Stephane Cosmeur
Hello I know my problem is quite common but i can't figure out by google and myself, although many people had the same problem. I try to populate a s:select with a map (MapInteger, String, but i got the (well known) following error : tag 'select', field 'list', id 'typeCompanyENUM', name

Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Stephane Cosmeur
and populating your List in the prepare() method? http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html Em 07-04-2010 05:16, Stephane Cosmeur escreveu: One week later, i'm still bocking on this problem ! The display:table has a really strange behaviour. I still

Re: Why do I need a refresh to print a display:table ?

2010-04-07 Thread Stephane Cosmeur
. Em 07-04-2010 09:27, Stephane Cosmeur escreveu: Yes I tried quite early after i discovered my problem and unfortunately useless. The behaviour stays strictly the same. On Wed, Apr 7, 2010 at 4:08 PM, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote: Hi Stéphane, did you try

Re: Why do I need a refresh to print a display:table ?

2010-04-06 Thread Stephane Cosmeur
/ListOrdersClient.action paramProperty=id paramId=id/ display:column property=address/ display:column property=company/ display:column property=phone/ /display:table /s:if help plz ! Regards, On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur cosm...@gmail.com wrote: Hello, My second message

Why do I need a refresh to print a display:table ?

2010-03-31 Thread Stephane Cosmeur
Hello, My second message on this webmail and still very new on Struts 2. My problem is, I guess, quite common. I have a simple action which return a jsp containing a display:table. This table calls his data from the list inside the actionclass. The table display perfectly well, but only at the

Access to two diffrent beans in one form

2010-03-27 Thread Stephane Cosmeur
Hello I'm very new on struts 2 and i'm facing a problem i can't resolv. I think it will be a formality for real users of struts. I have two actions class, ProductAction and CliendAction. And i want to have in a jsp two s:select to print the list of my clients and the list of my products. To