This is a fairly common issue.  I don't have time right now but if no one
shows you I can show you tonight.  It is a combination of type conversion
and the prepare filter depending on your requirements.  If you want to try
to figure it out on your own in the meantime, look at the type conversion
docs for collections.

Richa Pandharikar-2 wrote:
> 
> Dave,
> 
> No inputs ???
> 
> 
> 
> -----Original Message-----
> From: Biesbrock, Kevin [mailto:biesbrock.ke...@aoins.com] 
> Sent: Monday, December 22, 2008 12:23 PM
> To: Struts Users Mailing List
> Subject: RE: Bean Properties are lost
> 
> I would guess, then, maybe chaining the actions or storing the
> collections in a session variable.  Another idea would be to make the
> collection a character delimited string and store that in a hidden
> input.  Don't know what the best way is, though.
> 
> I'm interested to know the most efficient way as well. 
> 
> 
> Beez
> ( 4961 
> 
> -----Original Message-----
> From: Richa Pandharikar [mailto:richa.pandhari...@tdktech.com] 
> Sent: Monday, December 22, 2008 12:21 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean Properties are lost
> 
> I had tried to set the collection as a hidden property, but then I was
> getting "invalid value" error when I submit the form. 
> 
> Please not I do not have any validation rules configured for the hidden
> properties.
> 
> - Richa
> 
> -----Original Message-----
> From: Biesbrock, Kevin [mailto:biesbrock.ke...@aoins.com]
> Sent: Monday, December 22, 2008 7:34 AM
> To: Struts Users Mailing List
> Cc: Richa Pandharikar
> Subject: RE: Bean Properties are lost
> 
>  
> Make sure you're putting everything in your jsp.  If the field doesn't
> need to be displayed, use the <s:hidden.../> tag.
> 
> The problem is with your internal mail server.  Your company's spam
> filter is viewing your email as spam; whether it be the destination or
> content in your message, I don't know.  See if they can add the
> destination to the whitelist (acceptable list).
> 
> Beez
> ( 4961 
> 
> -----Original Message-----
> From: Richa Pandharikar [mailto:rich...@gmail.com]
> Sent: Friday, December 19, 2008 6:20 PM
> To: user@struts.apache.org
> Subject: Bean Properties are lost
> 
> 
> 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
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bean-Properties-are-lost-tp21099202p21151719.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

Reply via email to