You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Altug B. Altintas" <al...@riskturk.com> on 2003/11/13 20:56:01 UTC
Accesing Session Object from ActionForm
Hi , i have got a question about ActionForm
For example if i have got a simple form class which is inhereted from
ActionForm, here ist he code
****************************************************
public class SimulationForm extends ValidatorForm {
.......... // some declerations
public String getDate() {
return date;
}
public String getSimulationDate() {
return simDate;
}
public Collection getScenarios() {
// in here i have to access HttpSession object
// this Collection data is going to fill combobox
Collection c = (Collection) session.getAttribute("data") ; // any
solution for here ?
}
...... // some code
}
****************************************************
As i declared above, i need to access HttpSession object in ActionForm. Any
idea ?
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org