I am trying to display a layout here as is given in Layout.jsp. But I get an exception as mentioned in the subject. ExamRegister is a table in my database and i have its POJO also in package com.hp. When i run the project i get the login form i.e. index.jsp. When i enter the details in the form and click the login button the exception is reported.
Please could anybody tell me what is missing and where.
Thanks !!
leads me to believe that this is a Hibernate issue. What is the full stack trace of the error from the Tomcat log file?
Do you have ExamRegister configured as a Hibernate entity? You don't show us the source or the Hibernate config files.
I'd like to know why it mentions an insert to an "employee" table when your class you are fetching in LoginAction is ExamRegister. This leads me to believe that you are not showing us the full stack trace from your first post.
How did you set up ExamRegister with Hibernate? A mapping file or annotations? Can you show us the ExamRegister class and the mapping file (if any).
I am sorry I posted the wrong stack trace.The correct one is as follows:
exam_register is a table in my database. ExamRegister is the corresponding POJO for the table.ExamRegister class and the corresponding XML are as follows: