in some.jsp i have this code:
<%
ArrayList<Team> teams = Lists_DEO.getAllTeams();
for (int i = 0; i < teams.size(); i++){
Team curr = teams.get(i);
%>
<div class="team-item-box <% if (i%2 == 1) out.print("second");%>">
<a href="/FUF_League/UserGetTeam?teamID=<%=curr.getID()%>" class="left"><img src="<%= curr.getImageURL() %>" alt=""></a>
<a href="/FUF_League/UserGetTeam?teamID=<%=curr.getID()%>" class="watch-now"><%= curr.getName()%></a>
</div>
<%
}
%>
and it makes its job ... (I've checked with out.print and every single teamID has its unique value);
in UserGetTeam (servlet) I have this code:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.print(request.getAttribute("teamID"));
RequestDispatcher dispatch = request.getRequestDispatcher("/UserPages/UserGetTeam.jsp");
dispatch.forward(request, response);
}
and it prints out "null"...
what's the problem? i'm working on github, on this project, this code was working several hours ago, but now it doesn't and nobody has changed/commited this particular servlet or jsp...