dcsimg
No getter method for property StateID of bean State
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   danny_rebello
Posted On:   Friday, July 16, 2004 09:29 PM

My jsp has the following code In my action I set the list as session.setAttribute("State",list); OR session.setAttribute("State",list); list is a list containing States States has the fields StateID and StateName I get the following error when I execute this No getter method for property StateID of bean State Cud anyone please tell me what I am missing? This is the first time I am using My Struts-config.xml file looks like this type="airline.web.stru   More>>

My jsp has the following code





In my action I set the list as

session.setAttribute("State",list);

OR

session.setAttribute("State",list);


list is a list containing States

States has the fields StateID and StateName


I get the following error when I execute this

No getter method for property StateID of bean State


Cud anyone please tell me what I am missing? This is the

first time I am using


My Struts-config.xml file looks like this





















type="airline.web.struts.Person.NewPersonAction"

scope="session"

name="personInsert">






I am getting the values for the same in the JSP page


<%

ArrayList list = (ArrayList)session.getAttribute("State");

if(!(list.isEmpty())){

System.out.println("PRINTING STATE DETAILS IN JSP FILE");

for(int i=0;i

airline.web.struts.Person.State state = (airline.web.struts.Person.State)list.get(i);

String stateid = state.getStateID();

String statename = state.getStateName();

out.println("StateID " + stateid + " StateName " + statename);

}

}

System.out.println("FINISHED PRINTING STATE DETAILS IN JSP FILE");

%>


Thank you.
Danny Rebello
ormat code blocks.

   <<Less

Re: No getter method for property StateID of bean State

Posted By:   Anonymous  
Posted On:   Friday, July 16, 2004 09:51 PM

how you are trying to get the list????? mail it to me dvsn_dasari@rediffmail.com so that i can solve it...
About | Sitemap | Contact