Re: how remain in the same page

2009-04-21 Thread Dave Newton
elyes sallem wrote: but u know if u have personal pb with some one and u look for the opportunity to offend him freely it is too stupid behavior i think I don't have a personal problem with you, unless you count not bothering to spell the word "you", and calling my behavior stupid. I respond

Re: how remain in the same page

2009-04-21 Thread elyes sallem
i send a mail where i explained what he should use in this case (realm) here is the mail content ah , no , if you wanna make a test of user privilige , u can use in this case realm u defines roles and u can protect same page by security-constraint tag , u defines differents roles , here is an ex

Re: how remain in the same page

2009-04-21 Thread Dave Newton
Jim Kiley wrote: Are you recommending testing a user's privileges in the untrusted, untrustworthy, totally hackable client code? Really? Oh, what's the worst that could happen? Dave - To unsubscribe, e-mail: user-unsubscr..

Re: how remain in the same page

2009-04-21 Thread elyes sallem
dave , read this mail before !!! 2009/4/21 elyes sallem > ah , no , if you wanna make a test of user privilige , u can use in this > case realm > u defines roles > and u can protect same page by > security-constraint tag , u defines differents roles , here is an example > > > Test d'a

Re: how remain in the same page

2009-04-21 Thread Dave Newton
elyes sallem wrote: if u wanna remain in the same page Are you sending this from a cel phone? and u declare test1 in the jsp page as a hidden field ... Are you saying that I could just submit my own value for this field and break your "security" mechanism?! wish i was clear Me too.

Re: how remain in the same page

2009-04-21 Thread elyes sallem
ah , no , if you wanna make a test of user privilige , u can use in this case realm u defines roles and u can protect same page by security-constraint tag , u defines differents roles , here is an example Test d'authentification tomcat Page sécurisée

Re: how remain in the same page

2009-04-21 Thread Jim Kiley
Are you recommending testing a user's privileges in the untrusted, untrustworthy, totally hackable client code? Really? On Tue, Apr 21, 2009 at 10:43 AM, elyes sallem wrote: > of course u make the test , in a javascript function, in your jsp > > Elyes > > 2009/4/21 elyes sallem > > > hi Stefan

Re: how remain in the same page

2009-04-21 Thread elyes sallem
of course u make the test , in a javascript function, in your jsp Elyes 2009/4/21 elyes sallem > hi Stefano , > in fact , i choosed to back to one page in every case, that's ok for me > if u wanna remain in the same page > u can declare a getter for a member in the form > let's say test1 > so

Re: how remain in the same page

2009-04-21 Thread elyes sallem
hi Stefano , in fact , i choosed to back to one page in every case, that's ok for me if u wanna remain in the same page u can declare a getter for a member in the form let's say test1 so in getTest1(){ you make the treatment u want and return a boolean resultat for example if true, u submit to an

Re: how remain in the same page

2009-04-21 Thread Jim Kiley
There's a number of ways to handle scenarios like this. An easy one would be something like this: Assume you have start.jsp and next.jsp, and StartAction and NextAction. In StartAction have two results: SUCCESS and NOT_ALLOWED. SUCCESS goes to NextAction, NOT_ALLOWED returns to start.jsp. In th

Re: how remain in the same page

2009-04-21 Thread Stefano
have u solved? i've the same issues to do. On Mon, Apr 20, 2009 at 16:29, elyes sallem wrote: > Hello, > i have a struts application, which can be used by different user profile > among the profile, there is one who can access some pages > so if he try to access to one page , i will diplay a

how remain in the same page

2009-04-20 Thread elyes sallem
Hello, i have a struts application, which can be used by different user profile among the profile, there is one who can access some pages so if he try to access to one page , i will diplay a warning message in the depart page so, i wanna know , after checking the user profile in the action, how ca