jsp得错误代码An error occurred at line: 225 in the jsp file: /infocenter/sendcd.jspGenerated servlet error:
[javac] Compiling 1 source fileD:\Tomcat4\work\Standalone\localhost\mytest\infocenter\sendcd_jsp.java:294: cannot resolve symbol
symbol : variable sid
location: class org.apache.jsp.sendcd_jsp
int endid=sid;
[javac] Compiling 1 source fileD:\Tomcat4\work\Standalone\localhost\mytest\infocenter\sendcd_jsp.java:294: cannot resolve symbol
symbol : variable sid
location: class org.apache.jsp.sendcd_jsp
int endid=sid;
而jsp传值给javascript就可以.
如下例子中:
<%@ Language=VBScript %>
<%
dim strIp
strIp=Request.ServerVariables("remote_addr")
Response.Write "你的IP是:"&strIp
%>
<html>
<body>
<SCRIPT LANGUAGE=vbscript>
<!--
msgbox("<%=strIp%>")
-->
</SCRIPT>
</body>