Don't see anything wrong from what I've seen.  So is it silently failing on displaying 
the firstName?  Have you tried debugging it?  How about displaying something from 
WebappUser -- does *that* work?  Can you add a simple toString() to your Person class 
and try :

<nested:root name="userSession">
  <nested:write property="person"/>
</nested:root>

Sri

-----Original Message-----
From: Seth Milder [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 18, 2002 5:40 PM
To: Struts Users Mailing List
Subject: Re: Newbie: Nested Tag Trouble


Sri Sankaran wrote:

 > You haven't said what is it that is the problem.  I'll guess that  > lastName is not 
 >being displayed.

Good point. Your assumption is correct.

 >
 >
 > Is there supposed to be a default lastName when a WebappUser object is  > created?  
 >As you know that is what will be created when the useBean is  > encountered.

The WebappUser has previously been saved in the session. It has also 
been populated.

 >
 > Or, is there already a WebappUser object created before this page is  > loaded?  If 
 >so, is it under the same id (userSession) and scope 
(session)?

This

   <bean:write name="userSession" property="fullName" />

does work. This method just does this:

        public String getFullName(){
                return(_person.getFirstName() + " " +
                       _person.getLastName());
        }


Is there something wrong with my syntax for the nested tags?

Thanks for the speedy reply!

-- 
Seth Milder
Department of Physics and Astronomy
MS 3f3
George Mason University
Fairfax, VA
http://www.mrseth.org
--
The contempt for law and the contempt for the human consequences of lawbreaking go 
from the bottom to the top of American society. MARGARET MEAD



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to