I have a problem with trying to write out subclass properties from struts. I a have a class called WebappUser that contains a method

public Person getPerson(){return(_person);}

and Person then has a method

public String getLastName(){return(_lastName);}

A WebappUser object is stored in the session and I want to write out the lastName property for its Person object. In the JSP, I've tried variations of this:

<!------------------------------------------------------>
<jsp:useBean
id="userSession"
scope="session"
type="edu.gmu.opentac2.webapp.WebappUser"
/>

.
.
.

<nested:root name="userSession">
<nested:nest property="person">
<nested:write property="firstName" />
</nested:nest>
</nested:root>
<!------------------------------------------------------>

I apologize if the answer is obvious, but I could not really find too many examples of just how to do this. I am sure someone here will show me the errors of my ways, as they have before.

--
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]>

Reply via email to