Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

problem using kvanttisms

copycatcopycat Member Posts: 1
i have some problem using the kvattisms i written the code but there is a error here my code:


<%@ page import = "java.sql.*" %>
<%@ page import = "java.io.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "fi.kvanttisofta.sms.*" %>
<%@ page import = "javax.comm.*" %>
<%@ page import = "java.lang.*" %>

NATAS SMS System

NATAS SMS System

<%

String msg = null;
String hp = null;
Connection con = null;
String url = "jdbc:mysql://localhost:3306/natas";

Class.forName("org.gjt.mm.mysql.Driver");
con = DriverManager.getConnection (url, "", "");
Statement statement = con.createStatement();

msg = request.getParameter("message");
%>

Your Promotion Message:

<%=msg%>

<%
String sql = "SELECT * FROM user";

ResultSet rs = statement.executeQuery(sql);

if (rs.next())
{
String name = rs.getString("name");
hp = rs.getString("hp");

%>

<%=name%>

<%=hp%>

<%
}

SampleSmsApp myApp = new SampleSmsApp();
SmsTerminal term = null;

String confFileName = "C:\samplesmsapp.conf";
Properties conf = null;
FileInputStream confIn = null;

File confFile = new File(confFileName);
confIn = new FileInputStream(confFile);
conf = new Properties();
conf.load(confIn);

String smsTerminalPort = conf.getProperty("smsTerminalPort");
int smsTerminalBitRate = Integer.parseInt(conf.getProperty("smsTerminalBitRate"));
boolean includeSmscInfoLen = new Boolean(conf.getProperty("includeSmscInfoLen")).booleanValue();
String smscAddress = conf.getProperty("smscAddress");

term = new SmsTerminal(smsTerminalPort, smsTerminalBitRate, myApp);
term.initialize();
if(includeSmscInfoLen) {
term.setMsgOutIncludeSmscAddrLen(includeSmscInfoLen);
if(smscAddress != null)
term.setMsgOutSmscAddr(smscAddress);
}

String strHp = "+65"+hp;
term.sendMessage(strHp, msg);

statement.close();
con.close();

%>







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

An error occurred at line: 41 in the jsp file: /sms/classes/Sample.jsp
Generated servlet error:
SampleSmsApp cannot be resolved or is not a type

An error occurred at line: 41 in the jsp file: /sms/classes/Sample.jsp
Generated servlet error:
SampleSmsApp cannot be resolved or is not a type

An error occurred at line: 41 in the jsp file: /sms/classes/Sample.jsp
Generated servlet error:
SmsTerminal cannot be resolved or is not a type

An error occurred at line: 41 in the jsp file: /sms/classes/Sample.jsp
Generated servlet error:
SmsTerminal cannot be resolved or is not a type

anyone why?? pls help thank

Sign In or Register to comment.