Dear Rafal, To identify the user, you will need to use a login screen, accept the user's credentials and then display the contenet accordingly.
Saurabh On Mar 25, 10:27 am, Rafał Laczek <rafal_lac...@wp.pl> wrote: > Hi, > In my application to extract data I use JDBC. > The application is to display data according to organization the user is > employed. > There are 25 organizations . > I wanted to identify users in following way: > RequestCycle.get().getRequest()).getHttpServletRequest().getRemoteUser()); > if (userId ==0){ > System.out.println("The user "+ userId+ "doesn't exist"); > } > In SQL query I must use IDs of all these 25 organizations and I have > done it already. > Generally saying the user must see only information dedicated to its > organization (companyID). > Can you advise me how I can solve this problem. > The idea of getting userId can be different than I have presented above. > > Best regards, > Rafal -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.