Why do you want to do this? <% List iWantToGetThisList = (List) pageContext.getAttribute("employeeList"); %>
-----Original Message----- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: 20 December 2004 15:58 To: Struts Users Mailing List Subject: Actionform 's property Say I have an action form MyForm extends ActionForm { List employeeList; //set/getter follows... } Suppose in my action class's execute method, I populated employeeList from database, and do myForm.setEmployeeList(List someData); Now in my Jsp, how to get this value and assign this value to a java script variable? Such as: In my jsp: <% List iWantToGetThisList = ??? %> I know one way is that in the action's execute method, I put the employeeList in the request using request.setAttribute("employeeList", employeeList); but I don't want to do this way... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]