我写了一个类,但却报错,这是?
类如下:
file.jsp
<%
import java.io.*;
import java.sql.*
import java.util.*;
class cstr_gb
{
public String cstr(String str)
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp_c=new String(temp_t);
return temp_c;
}
}
%>
但在用的过程中,始终报java不支持该方法.请问这是?