500 Internal Server Error
Java Server Page Translation Error
Error during compilation :
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_mob__off\_mobile2.java:102: cannot resolve symbol
symbol : class MyBean
location: class pagecompile.jsp._examples._jsp._mob__off._mobile2
MyBean order = null;
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_mob__off\_mobile2.java:105: cannot resolve symbol
symbol : class MyBean
location: class pagecompile.jsp._examples._jsp._mob__off._mobile2
order= (MyBean)
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_examples\_jsp\_mob__off\_mobile2.java:110: cannot resolve symbol
symbol : class MyBean
location: class pagecompile.jsp._examples._jsp._mob__off._mobile2
order = (MyBean) Beans.instantiate(getClassLoader(), "MyBean");
^
3 errors
<html>
<body>
<form name="form2" enctype="multipart/form-data" method="post" action = "mobile2.jsp">
<input type = "file" name = "filename">
<input type = "submit" value = "submit">
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.sybase.jdbcx.*" %>
<%@ page import="java.io.*" %>
<%
Connection con=null;
try
{
Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
con=DriverManager.getConnection("jdbc:sybase:Tds:10.112.96.86:6400/abc","sa1","");
}
catch(ClassNotFoundException e)
{
System.out.println(e);
}
catch(SQLException se)
{
System.err.println("SQL Exception caught:" + se);
}
System.out.println("Success 1");
%>
<HTML>
<BODY>
Hello Visualbuilder
<
jsp:useBean class="MyBean" id="order" scope="page" />
<%= order.doUpload(request) %>
</BODY>
</HTML>
Please help to solve the problem