jspÒ³ÃæµÄ<c:forEach>³ö´í£¬¼±¡£¡£¡£
ÔÚSERVLETÖÐ
request.getSession().setAttribute("DWList", list);
ÔÚJSPÒ³Ãæ
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
...
<c:forEach items="${DWList}" var="DWList"> //105ÐÐ
<tr>
<td id="aaa" align="center" height="30px">${DWList.DWcode} </td>
<td id="aaa" align="center">${DWList.DWname} </td>
<td id="aaa" align="center">${DWList.temp} </td>
<td id="aaa" align="center">${DWList.DWdz} </td>
</tr>
</c:forEach>
ÓõÄÊÇJSTL1.1 tstl.jar standard.jarÁ½¸ö°üÒ²¶¼ÒѾµ¼Èë¡£
ÔËÐÐºó±¨´í£º
ÑÏÖØ: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /DWJsp.jsp(105,11) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compil
Ïà¹ØÎÊ´ð£º
ÒÔǰÔÚVCÀïÃæ½¨Ò»¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c Fil ......
ÎÊһϣº
#include <stdio.h>
int main()
{
char x, y, z;
int i;
int a[16];
for(i=0; i<=16; i++)
{
a[i] = 0;
......
//C ½Ó¿Ú
extern "C"
{
TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);
}
//ÎÒÔÚC#ÖÐÉùÃ÷
//µ÷ÓÃC DLL Öеĺ¯Êý
[DllImport("OCRapi.dll&quo ......
¶¨ÒåÁË
ifstream fin("in.txt");
±ÈÈçÎļþÊ×ÐÐÊÇÒ»¸öÊý×Ö£¬µÚ¶þÐÐÊÇÒ»´®×Ö·û¡£
int M;
char* str;
fin>>M;
fin>>str;
M¿ÉÒÔ¶Á³öÀ´£¬str×ÜÊÇÎÞ·¨¶ÁÈ ......
ÄÚÈÝÉæ¼°£ºC¡¢C++¡¢STL¡¢VC++¡¢MFC¡¢COM¡¢ATL¡¢WindowsÍøÂç±à³Ì¡¢Êý¾Ý¿â±à³Ì¡¢WindowsÇý¶¯±à³Ì¡¢Èí¼þ¹¤³Ì¡¢Windows²Ù×÷ϵͳ±à³Ì£¬µÈµÈ·½Ãæ¡£
ÏÂÔØµØÖ·£ºhttp://www.cctry.com/forumdisplay.php?fid=46
......