On Friday, April 26, 2002, 1:07:48 PM, Shane wrote:

SB> Consider a class called employee, with getter/setter methods for first and 
SB> last
SB> name.  Originally, I had an ArrayList of them in session scope (empList), 
SB> and
SB> used logic:iterate to display them in a JSP:

SB> <logic:iterate id="emp" name="empList" scope="session">
SB>         <bean:write name="emp" property="last"/>,
SB>         <bean:write name="emp" property="first"/>
SB>         <br>
SB> </logic:iterate>

SB> Now, empList is a member of another class in session scope (empForm), with a
SB> getter/setter for empList.

SB> What is the best way to display the names like I used to, now that empList 
SB> must
SB> be indirectly accessed via empForm?

    Would it work if in your action that forwards to the display page
    you get the empList from empForm and then put that empList into
    the session or request and use it just like you did above?
    
SB> -Shane
SB> _________________________________________________________________
SB> Chat with friends online, try MSN Messenger: http://messenger.msn.com


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



-- 

Rick
mailto:[EMAIL PROTECTED]

"When you go in for a job interview, I think a good thing to ask is if
they ever press charges." 
  -Jack Handey


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

Reply via email to