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 21:02:59 UTC
Accesing Session Object from ValidatorForm
Hi , (sorry for previous email) i have got a question about ValidatorForm
For example if i have got a simple form class which is inhereted from
ValidatorForm , here is the 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 ValidatorForm .
Any
idea ?
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org