Thanks for replying to my problem.Well i do somewhat understand what import
does, but my problem is not yet solved.
The directory in which i have my Product.class, that directory has been
added to the repository.
Therefore, when i import that class it doesnot give me an error but when i
try to instantiate an object it gives me the following error:
"""""""Exception while servicing request for /Belo.jsp:
java.lang.NoClassDefFoundError"""""".
Let me know if there is anyother thing that i need to change to see to it if
my class file is accessed.
Also please find the code of my Product class below:
import java.io.*;
public class Product implements Serializable{
String item;
int qty;
public Product(String s, String
item = s;
if(x != null)
qty = Integer.parseInt(x);
}
public Product(){
}
public String getItem(){
return item;
}
public int getQty(){
return qty;
}
public void setItem(String s){
item = s;
}
public void setQty(String x){
if(x != null)
qty = Integer.parseInt(x);
}
}
Let me know your comments.
Have a nice day.
With regards,
Sachin S. Khanna.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html