当前位置: 技术问答>java相关
使用bean报错:请各位大哥指教
来源: 互联网 发布时间:2015-01-05
本文导语: 报错如下: org.apache.jasper.JasperException: Unable to compile class for JSPC:tomcatbin..worklocalhost_scan_jsp.java:93: 没有与“try”搭配的“catch”或“finally”。 } catch (Throwable t) { ^ C:tomcatbin..worklocalhost_scan...
报错如下:
org.apache.jasper.JasperException: Unable to compile class for JSPC:tomcatbin..worklocalhost_scan_jsp.java:93: 没有与“try”搭配的“catch”或“finally”。
} catch (Throwable t) {
^
C:tomcatbin..worklocalhost_scan_jsp.java:93: 需要类型。
} catch (Throwable t) {
下面是源程序:
package filterbean;
import java.net.*;
import java.io.*;
import java.lang.*;
class filterbean{
public static String res="";
private int fromPort=2,toPort=80;
private InetAddress address;
void filterbean(String rote,int port1,int port2){
fromPort=port1;
toPort=port2;
}
public String scan(){
for(int i=fromPort;i
org.apache.jasper.JasperException: Unable to compile class for JSPC:tomcatbin..worklocalhost_scan_jsp.java:93: 没有与“try”搭配的“catch”或“finally”。
} catch (Throwable t) {
^
C:tomcatbin..worklocalhost_scan_jsp.java:93: 需要类型。
} catch (Throwable t) {
下面是源程序:
package filterbean;
import java.net.*;
import java.io.*;
import java.lang.*;
class filterbean{
public static String res="";
private int fromPort=2,toPort=80;
private InetAddress address;
void filterbean(String rote,int port1,int port2){
fromPort=port1;
toPort=port2;
}
public String scan(){
for(int i=fromPort;i