
when i run jsp program it shows error-500 what is that error my source code is
<% page import="java.sql.*" %>
<%!
Connection con;
PreparedStatement ps;
public void jspInit()
{
try
{
Class.forName("oracle,jdbc,driver,OracleDriver");
String cs="jdbc:oracle:thin:@localhost:1522:xe";
con=request.getConnection(cs,"siva","siva");
ps=con.prepareStatement("insert into register values(?,?,?)");
}
catch(ClassNotFoundException e)
{
System.out.println(e);
}
catch(SQLException e)
{
System.out.println(e);
}
}
public void jspdestroy()
{
try
{
con.close();
ps.close();
}
catch(SQLException e)
{
System.out.println(e);
}
}
%>
<%
String user=request.getParameter("username");
String pwd=request.getParameter("password");
String mno=request.getParameter("mobileno");
ps.setString(1,user);
ps.setString(2,pwd);
ps.setString(3,mno);
ps.excuteUpdate();
%>
<html>
<body bgcolor="red">
<h1>hello <%= user %> you are successfully registered</h1>
</body>
</html>

It seems that there is a programming error.The Error 500 occurred when the server encounter an internal error that prevent it from fulfilling the request. Check your code properly.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.