you have to define Ticket() as public:
public Ticket()
{
}
----- Original Message -----
From: "fau k" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 09, 2000 1:48 PM
Subject: No constructor matching Ticker() found in class Ticker.
Hi,
Can any one help me,, I am getting this error for past two days.. but till
now I am unable to solve this problem.
Here I am giving the application.. Please look into this and reply at
[EMAIL PROTECTED]
Please help me in this regard.. This is simple.. I am unable to import a
file.. this is problem with my computer or program..
Please reply to this mail, I will thankfull to u.
Thanks,
Malla Reddy Choodi
[EMAIL PROTECTED]
=================================================================
I am getting this error..
com.sun.jsp.JspException: Compilation
failed:work\%3A8080%2Fexamples\ticker_jsp_
1.java:89: No constructor matching Ticker() found in class Ticker.
Ticker tic = new Ticker();
^
1 error
at com.sun.jsp.compiler.Main.compile(Main.java:347)
at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:135)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspS
ervlet.java:77)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.j
ava:87)
at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155
)
at com.sun.web.core.Context.handleRequest(Context.java:414)
at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
HANDLER THREAD PROBLEM: java.io.IOException: Socket Closed
java.io.IOException: Socket Closed
at java.net.PlainSocketImpl.getInputStream(Unknown Source)
at java.net.Socket$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.Socket.getInputStream(Unknown Source)
at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:161)
=============================================================
Here is my source code..
This is my class file..
import java.io.Serializable;
import java.lang.*;
import java.sql.*;
import java.util.Vector;
public class Ticker extends java.lang.Object
implements Serializable
{
public String aTickerid = "";
public String aType = "";
public String aCol1 = "";
public String aCol2 = "";
public String aCol3 = "";
public String aCol4 = "";
Ticker()
{
}
Ticker(ResultSet rs) throws SQLException
{
aTickerid = rs.getString ("TICKER_ID") .trim();
aType = rs.getString ("TYPE") .trim();
aCol1 = rs.getString ("COL1") .trim();
aCol2 = rs.getString ("COL2") .trim();
aCol3 = rs.getString ("COL3") .trim();
aCol4 = rs.getString ("COL4") .trim();
}
public String PrintName(){
System.out.println("Malla Reddy");
String asd = "Malla Reddy";
return asd;
}
}
=====================================================
my jsp file..
<!-- This page was loaded on <%= (new java.util.Date()).toLocaleString() %>
-->
<%= (new java.util.Date()).toLocaleString() %>
<%@page language="java" import="java.sql.*, java.lang.*,
java.util.Vector,"%>
<%@page import="Ticker"%>
<% String asd = "Malla Reddy"; %>
<%
Vector V = new Vector();
Ticker tic = new Ticker();
======================================Here I am getting error..===
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
Name is <%= tic.PrintName() %>
<table width="75%" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
____________________________________________________________________________
_________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets