Re: Conversion problem String / float

2010-07-01 Thread Stephane Cosmeur
ion. The model Product has a float type for price. On Fri, Jul 2, 2010 at 3:28 AM, Ken wrote: > Please provide a trimmed down version of the form, the action bean and > the struts.xml file (if there is one) showing the issue. > > > On Thu, 2010-07-01 at 15:04 +0800, Stephane Cos

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 like

Re: Encrypting parameters

2010-06-03 Thread Stephane Cosmeur
y unsafe and unsecure. > > But this is only a programing 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

Re: Encrypting parameters

2010-06-03 Thread Stephane Cosmeur
some process 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 >

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

Re: Create / Edit Form, Best practices

2010-05-18 Thread Stephane Cosmeur
= null) { >pig = pigService.find(id); > } > return INPUT; > } > > > On Tue, May 18, 2010 at 21:02, Stephane Cosmeur wrote: > > > Hello, > > > > My question is quite simple : what are the best practices to manage the > > edit > > and creat

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 dif

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 Firstly i tried to use they key property and define label and name in the package.properties file. It didn't work and i gave up this solution. Any idea why ? So i defined my autocompleter like i mentioned it.

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 wit

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 i

Re: Basic security problem

2010-04-15 Thread Stephane Cosmeur
erceptor interceptor to your stack on > all protected actions. > > Cimballi > > > On Thu, Apr 15, 2010 at 9:39 PM, Kun Niu wrote: > > You should check the authentication all by yourself in your action. > > > > Stephane Cosmeur wrote: > >> > >> H

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: Populate s:select with a Map

2010-04-13 Thread Stephane Cosmeur
anyENUM = typeCompanyENUM; } //Others getters and setters } On Tue, Apr 13, 2010 at 2:50 PM, Stephane Cosmeur wrote: > I tried this as well : > > > > Regards, > > > On Tue, Apr 13, 2010 at 12:51 PM, Stephane Cosmeur wrote: > >> Hello >> >>

Re: Populate s:select with a Map

2010-04-12 Thread Stephane Cosmeur
I tried this as well : Regards, On Tue, Apr 13, 2010 at 12:51 PM, Stephane Cosmeur wrote: > 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 ma

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 (Map, but i got the (well known) following error : tag 'select', field 'list', id 'typeCompanyENUM', name 'typeCompanyENUM': The

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

2010-04-07 Thread Stephane Cosmeur
trange behaviour. > > 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< >>

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

2010-04-07 Thread Stephane Cosmeur
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 rea

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

2010-04-06 Thread Stephane Cosmeur
pty. Is it possible that the display:table get displayed before that the list get populated ? There is the code of my display:table help plz ! Regards, On Wed, Mar 31, 2010 at 4:18 PM, Stephane Cosmeur wrote: > Hello, > > My second message on this webmail and still very ne

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 sec

Access to two diffrent beans in one form

2010-03-26 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 display