"Could not find init.jsp" error, and "list" is always null in component
I have some code in a component where I'm trying to get the list from a request, and it always comes back null. Why is this happening? The other interesting, and probably related, thing, is that when I use a simple " <cq:include script="init.jsp"/>", I get the "Could not find init.jsp" error. When I give an explicit path to init.jsp, (as shown below), it's resolved, but the list always comes back empty. Has anyone seen this??? What's causing this?
// initialize the list
%>
<cq:include script="/libs/wcm/core/components/init/init.jsp"/>
<%
List list = (List)request.getAttribute("list");
if (!list.isEmpty()) {
...
}