Topic: 在jbuilder中使用include是的问题?

  Print this page

1.在jbuilder中使用include是的问题? Copy to clipboard
Posted by: zbljava
Posted on: 2003-08-05 21:09

file1:jsp1.jsp

<%@ page contentType="text/html; charset=GBK" %>
<%! String name="zbl";%>
<html>
<head>
<title>
jsp1
</title>
</head>
<body bgcolor="#ffffff">
<h1>
JBuilder Generated JSP
</h1>
<jsp:include page="jsp2.jsp"/>
<%--<%@ include file="jsp2.jsp"%>--%>
</body>
</html>

file2: jsp2.jsp

<%@ page contentType="text/html; charset=GBK" %>
<%=name%>

error message:
"jsp2.jsp": Error #: 300 : variable name not found in class jsp2_0002ejsp_jsp at line 2

why cant use include?

2.Re:在jbuilder中使用include是的问题? [Re: zbljava] Copy to clipboard
Posted by: dapan
Posted on: 2003-08-06 10:26

无法编译jsp2.jsp。

用别的方式传递name吧。

^_^

3.Re:在jbuilder中使用include是的问题? [Re: zbljava] Copy to clipboard
Posted by: ppp5
Posted on: 2003-08-13 16:01

I think you don't declare the 'name' in the jsp2.jsp. So it does not know the variable name.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923