
List leagueList=(List).context.getAttribute("leagueList");
this is one line in my servlet code. but i have error with this line. The error is.... illegal start of type. Cannot find symbol. Symbol:variable context. I want solution

u need to change that code like List lt=(List)request.getParameter("leaguelist");
Because If the parameter of the attribute be in request scope.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.