标题:请高手多多指点
只看楼主
huanwang1218
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2004-8-17
 问题点数:0 回复次数:3 
请高手多多指点

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Compiling 1 source file

D:\Tomcat 4.1\work\Standalone\localhost\_\wanghuan3_jsp.java:30: ';' expected
^
1 error
请问这样的问提是什么样的问题
希望高手多指点,多多照顾
 
搜索更多相关主题的帖子: servlet jsp occurred request ffffff 
2004-08-17 13:26
huanwang1218
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2004-8-17
得分:0 

<%@ page contentType="text/html;charset=gb2312"%> <%@ page language="java" import="java.sql.*,java.io.*" %> <%!//声明变量和方法 public String getStr(String str); { try { String temp_p=str; byte[] temp_t=temp_p.getBytes("ISO8859-1"); String temp=new String(temp_t); return temp; } catch(Exception e) {

}; return "null"; } %> <%!String sortID, patentName,patentID,Inr,email1,province,Addre,linkMan, Tel,Fax;//定义非必须填写的项目 String url,email2,unit,important,indata,picture1,picture2 %> <% sortID=request.getParameter("sortID"); if(sortID.trim().equals("")){ sortID=null; } patentName=request.getParameter("patentName"); if(patentName.trim().equals("")){ patentName=null; } patentID=request.getParameter("patentID"); Inr=request.getParameter("Inr"); email1=request.getParameter("email1"); province=request.getParameter("province"); Addre=request.getParameter("Addre"); linkMan=request.getParameter("linkMan"); Tel=request.getParameter("Tel"); Fax=request.getParameter("Fax"); url=request.getParameter("url"); email2=request.getParameter("email2"); unit=request.getParameter("unit"); important=request.getParameter("important"); //indata=request.getParameter("indata"); picture1=request.getParameter("picture1"); picture1=request.getParameter("picture2"); %> <% sortID = getStr(sortID); patentName = getStr(patentName); patentID = getStr(patentID); Inr= getStr(Inr); email1 = getStr(email1); email2 = getStr(email2); province= getStr(province); Addre= getStr(Addre); linkMan = getStr(linkMan); Tel = getStr(Tel); Fax= getStr(Fax); url = getStr(url); unit = getStr(unit); important = getStr(important); // indata = getStr(indata); picture1= getStr(picture1); picture2= getStr(picture2); %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:patentp","patentp","patentp"); Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); %>

<% String sqlinsert="insert into zhongjs(sortID ,patentName,patentID,Inr,email1,email2,province,Addre,linkMan,Tel,Fax,url,unit,important,indata,picturel1,picturel2) values('"+sortID+"','"+patentName+"','"+patentID+"','"+Inr+"','"+email1+"','"+email2+"','"+province+"','"+Addre+"','"+linkMan+"','"+Tel+"','"+Fax+"','"+url+"','"+unit+"','"+important+"','"+picturel+"','"+picture2+"')"; stmt.executeUpdate(sqlinsert); //out.print(sqlinsert); response.sendRedirect("fabuGR.htm"); %>

这个就是源代码

我是刚学的jsp

请帮帮忙

2004-08-17 13:30
tqtbj
Rank: 1
等 级:新手上路
帖 子:43
专家分:0
注 册:2004-8-1
得分:0 
我也是刚学的JSP,刚才看了一下,但看不明白,只有请版主解答了
2004-08-17 15:16
huanwang1218
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2004-8-17
得分:0 

多谢》》

2004-08-17 16:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-4347-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015581 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved