Kevin-

if your scope is local that is the problem..the default scope is page *(so as 
soon as you switch page the variable is lost)*
try a more comprehensive scope such as application instead
Take a look at ScopeInterceptor to access the scoped atrributes
http://struts.apache.org/2.x/docs/scope-interceptor.html

Anyone ?
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Subject: RE: Bean Properties are lost
> Date: Mon, 22 Dec 2008 08:33:42 -0500
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
>  
> 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:[email protected]] 
> Sent: Friday, December 19, 2008 6:20 PM
> To: [email protected]
> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

_________________________________________________________________
It’s the same Hotmail®. If by “same” you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008

Reply via email to