This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!

Archi Sharma

Greenhorn
+ Follow
since Jul 15, 2015
Archi likes ...
Hibernate Netbeans IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Archi Sharma

Ok. Thanks for your help. I will learn more about struts and then proceed further.
6 years ago
I want to enter questions into a table using a form. Make_test is the form JSP. addQues is the JSP which sends data to the table.After submitting the data in the form, an exception is generated.
Please tell me what is wrong or missing.
Thanks

Make_Test.jsp



addQues.jsp



Stack Trace of Exception

6 years ago
Still getting the following exception:

Ok . Thanks for your help!!
6 years ago
I did as you said Arun, but I got an exception:
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:


ExamRegister.java



ExamRegister.hbm.xml



Following is the stack trace and the cfg file respectively.I would also like to mention that I am using Netbeans ide.



cfg


I am restricted to using only JSP, struts2 and hibernate. That's why I don't have any servlets.
Is there any other way to do this without using servlets?
6 years ago
I have a table employee . I want the user to enter information in the form and it must be stored in the database.But the code below throws an exception.Could anyone tell me what is missing?

Thanks.

addEmp.jsp



MyPage.jsp


exception:
6 years ago
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 !!

tiles.xml


web.xml


struts.xml


Layout.jsp



LoginAction.java


exception