Richard Hill-7 wrote: > > > Getting the user id depends on what public methods your user object has. > Presumably it has something like .getId() ? > > > > On Tue, 2011-03-01 at 06:44 -0800, robnangle wrote: >> Im probably wording the question wrong but that returns something like a >> memory address: Entities.User@12e7cb6 >> >> I want to find the user_id of that user? >> > > > > >
Yes I have a method like that but it keep's returning null, my user class: //These were originally strings but changed in an effort to get working @SessionState private User user_id; public User getUser_id() { return user_id; } public void setUser_id(User user_id) { this.user_id = user_id; } then the in my page: @SessionState private User user; @Property private String user_id; public User getUser() { return user; } public void setUser(User user) { this.user = user; } prep.setString(1, user_id); -- View this message in context: http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3405064.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org