Hi James, User is not a class, it's an interface. The implementation actually used is TurbineUser. This has got a getPrimarykey method inherited from BaseObject. So you can do ((TurbineUser)rundata.getUser()).getPrimaryKey(). Notice the cast. Stefan
Am Montag, 22. Juli 2002 13:04 schrieben Sie: > after i login into Jetspeed,how do i get my current user id in my porlet? > ______________________________________ > > import org.apache.turbine.om.security.User; > ... > User user = rundata.getUser(); > String username = user.getUserName(); > ... > > > but the class > org.apache.turbine.om.security.User > doesnt supply any method like getUserName(), to get USER_ID field in the > table TURBINE_USER. > > any answer will be appreciated! > > James -- Stefan Kuhn M. A. MPI of Chemical Ecology, Winzerlaer Str. 10, Beutenberg Campus, 07745 Jena, Germany Tel: +49(0)3641 571261 - Fax: +49(0)3641 571202 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
