Hi, i should use Java classes in JSP, but i can't.
I have a class named Customer.java which is like this:
And in my jsp file, at the top i wrote:PHP Code:import java.sql.*;
package Hotel;
public class Customer
{
}
It gives the following error:PHP Code:<%@ page contentType="text/html; charset=iso-8859-9" %>
<%@ page import="java.sql.*" %>
<jsp:useBean id="NewHotel" scope="session" class="Hotel.MyHotel"></jsp:useBean>
org.apache.jasper.JasperException: /Hotel/acceptres.jsp(2,0) The value for the useBean class attribute Hotel.MyHotel is invalid.
What should i do?


Reply With Quote
Bookmarks