Once the user is logged in you can store the userid in a session variable
and use it for consecutive requests. As Saurabh said you have to present a
screen to get the userid, if you don't want to authenticate the user you can
byepass the authentication mechanism and just use the id. Hope this helps.

thx
Senthil

2010/3/25 Rafał Laczek <rafal_lac...@wp.pl>

> 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<java-ee-j2ee-programming-with-passion%2bunsubscr...@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.
>

-- 
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.

Reply via email to