I am trying to include a jsp template that contains a query and output the
result set in another page. Somehow I cannot find good documentation on
doing this. I keep getting the following error:
********** Undefined variable or class name: get_Clips
out.print(get_Clips.get("clipNumber")); ***********
Can someone help!!!
Here is of the code
test.jsp
---------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>test</title>
</head>
<body>
<%@ page import = "allaire.taglib.*" %>
<%@ taglib uri="jruntags" prefix="jrun" %>
<jsp:include page="qry_getdata.jsp" flush="true"/>
</jsp:include>
<jrun:foreach group="get_Clips" >
<%= get_Clips.get("clipNumber") %>
</jrun:foreach>
</body>
</html>
qry_getdata.jsp
---------------------
<jrun:sql datasrc="test" id="get_Clips">
select * from ClipData
</jrun:sql>
<jrun:param id="get_Clips" type="QueryTable" />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists