One approach is to use the nested tag library (if you are using Struts 1.0.2 it's a separate download from www.keyboardmonkey.com/next/index.jsp). Using it you can display questionText for example as :
<nested:form action="foo"> <nested:write property="pageObject.questionObject.text"/> </nested:form> if _formBean is the form-bean associated with the action 'foo'. Sri > -----Original Message----- > From: Michael P. Jones [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 23, 2002 6:53 PM > To: Struts Users Mailing List > Subject: JSP: Getting a Bean > > > Hello- > > I have been using Struts for about a year now, however I have > only used it > with Stxx. All of these taglibs are new to me. > > I'm certain this is a very basic question but I have yet to figure it > out... > > I have an Object in a FormBean I want to pull the Object from > the FormBean and then get another object from that Object. > Once I get the second object I want to get values from it. > > > PageObject po = _formBean.getPageObject(); > > QuestionObject qo = po.getQuestionObject(); > > String questionText = qo.getText(); > > How do I do this with JSP? Can you point me in a direction > that will explain this or just post a code clip? > > Thanks in advance- > Michael > > > > -- > To unsubscribe, e-mail: > <mailto:struts-user-> [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]>