I want to use bean in my jsp page but run time occure and i can't resolve.
Error:
An error occurred at line: 28 in the jsp file: /WEB-INF/AdminPages/AddUser.jsp
listOfGroupNo cannot be resolved
25: %>
26: <%! void addGroup(int no) {
27:
28: listOfGroupNo.getGroupList().add(no);
29: }
30:
31: %>
is that error means the object is not defined? Here is the decleration and initialization of bean in my jsp
<jsp:useBean id="listOfGroupNo" class="iug.edu.entities.GroupsNoList" scope="request">
<jsp:setProperty name="listOfGroupNo" property="groupList" />
</jsp:useBean>
and here is my bean
public class GroupsNoList {
private List groupList= new ArrayList();
public List getGroupList() {
return groupList;
}
public void setGroupList(List groupList) {
this.groupList = groupList;
}
}