请教jsp高手
%
String tt=new String();
List list=new ArrayList();
myhorsefsy my=new myhorsefsy();
list=my.getlist("SELECT stuID from stuinfo");
for(int i=0;i <list.size();i++)
{
%>
这段代码那里有问题呀?eclipse报unknown tag(list.size())
这段没问题
自己顶一下
为什么会报错
把详细的代码贴出来啊,
myhorsefsy返回的是list吗。。。
Java code:
for(int i=0;i <list.size();i++)
{
%>
不会是少个}吧
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@page import="fsy.myhorsefsy"%>
<%@page import="fsy.fsy"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.jsp' starting page </title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="
相关问答:
<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
< ......
问题是这样的:
我有一个文件nagiv.jsp 另一个文件failure.jsp包含他,同时nagiv文件中有一个可以跳转到yy.jsp的commandButton,但是我将failure中点击nagiv中的哪个commandButton,也面不会跳转 ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......
通过request.getHeader("Referer")可以获得上个页面的来源,有没有办法伪造这个referer属性.
response.setHeader("refresh","3;url='regiest.jsp'");
response.setHeader("re ......