I wrote a zimlet, which calls file1.js which opens a new window with file2.jsp.

In file2.jsp I need to know the userID of the current user.

There are two ways:
1. a "magic" java command to write in file2.jsp
2. obtain the userID in file1.js and call file2.jsp?uid=<uid_not_known>

How can I do it? Thanks.