Dear sir i am using sunmicrosystem deploye tool. I am making a tag for jdbc but when i am calling the jsp i am getting following type of exception as. i want to know here that why i am getting these types of exception?In which situation these types of exception may occure.
String st="insert into user_login (user_id,user_password) values (name,pass1);"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("Jdbc:Odbc:MyDataSource","scott","tiger"); Statement stmt=con.createStatement(); int n=stmt.executeUpdate(st);
Correct me if I am wrong. My understanding is that custom tags (or actions) should be used only for display logic (like printing out a menu / header / footer notes etc). For the same reason, I wasn't really a fan of the JSTL SQL Tag Library. Putting SQL logic in JSP defeats the whole purpose of MVC, in my humble opinion.