I have a User Object that I am using as a Bean in an Action. User Object has following properties –
firstName lastName username password collection roles<Role> projects<Project> Roles data is no where displayed on the JSP page. Project data is displayed but I am using the plain ids to render the select tag. In the jsp the firstName, lastName, username, password properties are mapped to user.firstName….and likewise. I have separate List<Long>projectIds variable defined in the action class to get the selected projects ids. After editing the user information when the form is submitted, I am getting the firstName, lastName, username, password back in the user object but I am loosing the roles and projects data populated in the User object before rendering the page. What is going wrong? Or is this the correct behavior? In order to retain the collection values, what logic do I need to add? Thanks! P.S. A non struts related issue - whenever I am trying to send out an email to the user group, my email is bouncing back and the error is - Your message did not reach some or all of the intended recipients. Subject: Bean Properties are lost Sent: 12/19/2008 5:12 PM The following recipient(s) cannot be reached: Struts Users Mailing List on 12/19/2008 5:13 PM There was a SMTP communication problem with the recipient's email server. Please contact your system administrator. <(my company's email server) #5.5.0 smtp;552 spam score (7.5) exceeded threshold> -- View this message in context: http://www.nabble.com/Bean-Properties-are-lost-tp21099202p21099202.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org