Thanks, this works.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 11:36 AM
To: Struts Users Mailing List
Subject: RE: Actionform 's property


He doesn't:  http://struts.apache.org/userGuide/struts-bean.html#define



"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]> 
12/20/2004 11:17 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc

Subject
RE: Actionform 's property






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]


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

Reply via email to