This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
1) I have an online form with 20 fields in it. On click of submit button, the form values should be saved in to the database.
2) I have created a jsp file.
3) Created a form bean Employee.java with getters and setters method.
3) Created an action class which contains Employee as a variable, getter and setter method. getEmployee(), setEmployee(emp)
My Action class:
My jsp page:
it is showing null pointer exception at empInfo.getEmployeeId().
it is not setting the fields in Employee.java .
Am i doing anythign wrong??
Deeps, if you quote what someone wrote, you should use the [ quote ] tags which you can insert using the quote button on the screen where you enter your message.
Why are you having to set the value explicitly. If there is any value in empInfo.EmpLastName, then it will automatically get set in the text-field. Try using empInfo.empLastName instead of empInfo.EmpLastName (this is my fault )...